# US 10,958,432 B1 · Prime number prediction

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 10,958,432 B1
- Document ID: US10958432B1
- Status: Granted
- Kind: B1
- Application number: 16/589,919
- Filed: 2019-10-01
- Granted: 2021-03-23
- Earliest claimed: 2014-04-29
- Applicants: Robert G. Batchko
- Inventors: Robert G. Batchko
- Web page: https://patentgrep.com/patent/US10958432B1

## CPC

- H04L 9/302: {involving the integer factorization problem, e.g. RSA or quadratic sieve [QS] schemes}
- G06F 7/582: {Pseudo-random number generators}
- G06F 7/72: using residue arithmetic
- G06F 17/10: Complex mathematical operations {(function generation by table look-up G06F1/03; evaluation of elementary functions by calculation G06F7/544)}
- G06F 17/17: Function evaluation by approximation methods, e.g. inter- or extrapolation, smoothing, least mean square method ({G06F17/18 takes precedence } ; interpolation for numerical control G05B19/18)
- H04L 9/3033: {details relating to pseudo-prime or prime number generation, e.g. primality test}
- G06F 2207/7204: Prime number generation or prime number testing
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A regression on a prime-indexed-prime finite difference generator function is used to predict prime numbers. It is emphasized that this abstract is provided to comply with the rules requiring an abstract that will allow a searcher or other reader to quickly ascertain the subject matter of the technical disclosure. It is submitted with the understanding that it will not be used to interpret or limit the scope or meaning of the claims.

## Claims

### Claim 1

A method comprising:
for a first index set consisting of a range of consecutive positive integers x, finding a list of prime numbers, p(x) with a processor:
with a processor, using prime-indexed primes (PIPs), q(s,k,x), to select values of s (prime-index-prime shift), and k (prime-index order), whereby q(s,1,x)=p(x), q(s,2,x)=p(p(x)), and so on finding a list of PIPs q(s,2,x);
performing an nth-order finite difference operation on the lists q(s,1,x) and q(s,2,x) to generate lists Δ(h,n){q}(s,1,x) and Δ(h,n){q}(s,2,x) with a processor, where Δ is a finite difference operator, h is a finite difference spacing parameter, and n is an order of finite differencing;
performing a regression of Δ(h,n){q}(s,2,x) on Δ(h,n){q}(s,1,x) with a processor;
from the regression of Δ(h,n){q}(s,2,x) on Δ(h,n){q}(s,1,x), deriving a fitting function and coefficients for the fitting function with a processor;
from the fitting function and from a second index-set consisting of a range of consecutive positive integers z, deriving a list of predicted finite-differenced PIPs E[Δ(h,n){q}(s,2,z)] with a processor;
performing an inverse nth-order finite difference operation on the list E[Δ(h,n){q}(s,2,z)], thereby deriving a list of predicted PIPs E[q(s,2,z)] with a processor;
using the derived list E[q(s,2,z)] as a means of forecasting, predicting, or refining estimated bounds of q(s,2,x) with a processor; and
using the derived values of x and E[Δ(h,n){q}(s,2,x)] and/or E[q(s,2,x)] to predict prime numbers with a processor;
generating pseudorandom numbers in a pseudorandom number generator (PRNG) with the predicted prime numbers;
generating indexes from a hash function involving data values and the pseudorandom numbers with a processor; and
assigning unique keys to the values in a hash table stored in a memory with a processor.

### Claim 2 (depends on 1)

The method of claim 1, further comprising storing or transmitting the derived values of x and E[Δ(h,n){q}(s,2,x)] and/or E[q(s,2,x)].

### Claim 3 (depends on 1)

An apparatus, comprising:
a computational processor; and
a memory coupled to the computational processor, the memory having computer readable instructions embodied therein, the instructions being configured, upon execution by the computational processor, to implement the method of claim 1.

### Claim 4 (depends on 1)

A non-transitory computer-readable medium having computer executable instructions embodied therein that, when executed, implement the method of claim 1.

### Claim 5

A method, comprising:
for a number x, calculating the xth prime, p(x) using asymptotic expressions for upper and lower bounds of p(x) with a processor;
with the processor, using prime-indexed primes (PIPs), q, to select values of s (prime-index-prime shift), and k (prime-index order) such that q(s,k,i)=x, whereby q(s,k+1,i)=p(x);
finding values of q(s,k,i), q(s,k−1,i), q(s,k−2,i) . . . with a processor;
performing regressions on a prime-indexed-prime finite difference generator function daleth(h,n){q}(s,k,i) daleth(h,n){q}(s,k−1,i) with a processor, where values of h (finite difference spacing) and n (finite difference order) are also selected;
from the regressions, deriving fitting functions and coefficients for daleth(h,n){q}(s,k,i) daleth(h,n){q}(s,k−1,i) with a processor;
from the fitting functions and coefficients, extrapolating a fitting function for daleth(h,n){q}(s,k+1,i) with a processor;
from definitions of daleth and q, deriving an estimated value for p(x) with a processor;
using the derived value of p(x) as a refinement to asymptotic expressions for bounds for the xth prime, p(x) with a processor; and
generating pseudorandom numbers in a pseudorandom number generator using the derived value of p(x);
generating indexes from a hash function involving data values and the pseudorandom numbers with a processor; and
assigning unique keys to the values in a hash table in a memory with a processor.

### Claim 6 (depends on 5)

The method of claim 5 wherein performing regressions on a prime-indexed-prime finite difference generator function includes using linear, quadratic, exponential or any other appropriate model for the regressions.

### Claim 7 (depends on 5)

The method of claim 5, further comprising using the derived value of p(x) in a public key encryption algorithm.

### Claim 8 (depends on 5)

The method of claim 5, further comprising using the derived value of p(x) in a pseudorandom number generator.

### Claim 9 (depends on 5)

An apparatus, comprising:
a computational processor; and
a memory coupled to the computational processor, the memory having computer readable instructions embodied therein, the instructions being configured, upon execution by the computational processor, to implement the method of claim 5.

### Claim 10 (depends on 5)

A non-transitory computer-readable medium having computer executable instructions embodied therein that, when executed, implement the method of claim 5.

### Claim 11

A method, comprising:
for a number x, estimating the value of the xth prime, p(x) with a processor:
with a processor, using prime-indexed primes (PIPs), q, to select values of s (prime-index-prime shift), and k (prime-index order) such that q(s,k−1,i)=x, whereby q(s,k,i)=p(x);
finding the values of q(s,k,i−1), q(s,k,i−2) . . . ;
performing a regression on a prime-indexed-prime finite difference generator function daleth(h,n){q}(s,k,i−1) daleth(h,n){q}(s,k,i−2) . . . with a processor, where values of h (finite difference spacing) and n (finite difference order) are also selected;
from the regression, deriving a fitting function and coefficients for the general expression daleth(h,n){q}(s,k,j) with a processor, where j=1, 2, . . .
from the fitting function, predicting a value for the a prime-indexed-prime finite difference generator function daleth(h,n){q}(s,k,i) with a processor;
from the definitions of daleth and q, deriving an estimated value for p(x) with a processor;
generating pseudorandom numbers in a pseudorandom number generator (PRNG) with the derived estimated value for p(x);
generating indexes from a hash function involving data values and the pseudorandom numbers with a processor; and
assigning unique keys to the values in a hash table in a memory.

### Claim 12 (depends on 11)

The method of claim 11, further comprising processing, storing, or transmitting the derived value of p(x).

### Claim 13 (depends on 11)

The method of claim 11 wherein performing regressions on a prime-indexed-prime finite difference generator function includes using linear, quadratic, or exponential model for the regressions.

### Claim 14 (depends on 11)

The method of claim 11, further comprising storing or transmitting the derived value the derived value of p(x) in a public key encryption algorithm.

### Claim 15 (depends on 11)

An apparatus, comprising:
a computational processor; and
a memory coupled to the computational processor, the memory having computer readable instructions embodied therein, the instructions being configured, upon execution by the computational processor, to implement the method of claim 11.

### Claim 16 (depends on 11)

A non-transitory computer-readable medium having computer executable instructions embodied therein that, when executed, implement the method of claim 11.
