WO2001008350A1 - T-sequence apparatus and method for general deterministic polynomial-time primality testing and composite factoring - Google Patents

T-sequence apparatus and method for general deterministic polynomial-time primality testing and composite factoring Download PDF

Info

Publication number
WO2001008350A1
WO2001008350A1 PCT/US2000/020199 US0020199W WO0108350A1 WO 2001008350 A1 WO2001008350 A1 WO 2001008350A1 US 0020199 W US0020199 W US 0020199W WO 0108350 A1 WO0108350 A1 WO 0108350A1
Authority
WO
WIPO (PCT)
Prior art keywords
mod
prime
primality
montonic
sequence
Prior art date
Application number
PCT/US2000/020199
Other languages
French (fr)
Inventor
Shaul O. Backal
Tie Teck Sing
Original Assignee
Backal Shaul O
Tie Teck Sing
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Backal Shaul O, Tie Teck Sing filed Critical Backal Shaul O
Priority to AU63724/00A priority Critical patent/AU6372400A/en
Publication of WO2001008350A1 publication Critical patent/WO2001008350A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/60Methods or arrangements for performing computations using a digital non-denominational number representation, i.e. number representation without radix; Computing devices using combinations of denominational and non-denominational quantity representations, e.g. using difunction pulse trains, STEELE computers, phase computers
    • G06F7/72Methods or arrangements for performing computations using a digital non-denominational number representation, i.e. number representation without radix; Computing devices using combinations of denominational and non-denominational quantity representations, e.g. using difunction pulse trains, STEELE computers, phase computers using residue arithmetic
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/58Random or pseudo-random number generators
    • G06F7/582Pseudo-random number generators
    • G06F7/586Pseudo-random number generators using an integer algorithm, e.g. using linear congruential method
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/065Encryption by serially and continuously modifying data stream elements, e.g. stream cipher systems, RC4, SEAL or A5/3
    • H04L9/0656Pseudorandom key sequence combined element-for-element with data sequence, e.g. one-time-pad [OTP] or Vernam's cipher
    • H04L9/0662Pseudorandom key sequence combined element-for-element with data sequence, e.g. one-time-pad [OTP] or Vernam's cipher with particular pseudorandom sequence generator
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/30Public key, i.e. encryption algorithm being computationally infeasible to invert or user's encryption keys not requiring secrecy
    • H04L9/3006Public key, i.e. encryption algorithm being computationally infeasible to invert or user's encryption keys not requiring secrecy underlying computational problems or public-key parameters
    • H04L9/3033Public key, i.e. encryption algorithm being computationally infeasible to invert or user's encryption keys not requiring secrecy underlying computational problems or public-key parameters details relating to pseudo-prime or prime number generation, e.g. primality test
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2207/00Indexing scheme relating to methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F2207/72Indexing scheme relating to groups G06F7/72 - G06F7/729
    • G06F2207/7204Prime number generation or prime number testing

Definitions

  • the present invention relates to prime and composite number computing and applications of the same, e.g., in the area of data security.
  • Prime numbers (2, 3, 5, 7, 11, 13, ..., those positive integers divisible only by themselves or 1) are the most fundamental building blocks of math, and with the invention of the public key ciphers (RSA, El Gamal and the like), they now form the backbone of computer security.
  • the primal- ity testing problem is about testing and determining whether a given arbitrary positive integer is a prime number or a composite (non-prime) number.
  • the factoring problem requires determining the composite number's prime factors. Practicality demands that these two problems have to be solved in polynomial time (computations being proportional to the number of digits and therefore fast), not exponential time (computations being proportional to the size of the numbers themselves and therefore too slow).
  • Polynomial-time algorithm the algorithm's speed needs to be proportional to a small power of the number of digits of that integer, e.g. d , instead of sub-exponential or exponential time, e.g., 2 .
  • the algorithm can determine the primality of a number with certainty and not with statistical probability.
  • T-sequence Using a new mathematical technique called the T-sequence, the inventor has discovered a powerful primality testing method that meets all four conditions above. A similar approach can be applied to perform fast factoring for numerous special cases, a method that can, in all liklihood, be extended to the general case, making possible a general and fast factoring algorithm. (Researchers heretofore have been able to factor only in sub-exponential time, never in polynomial time.)
  • the same T- sequence can be used to construct a prime number formula (long sought after but never achieved) and a good random number generator. The former can be used to generate infinitely many prime numbers of any size efficiently, and the latter can generate non-periodic and absolutely chaotic random numbers. These numbers are widely used in all areas of industrial and scientific simulations.
  • the T- sequence can be used to handle efficiently the fundamental problems concerning prime numbers (which include primality testing, factoring, prime number formula, infinite-pattern prime problem, etc.).
  • Figure 1 is a block diagram of a prime number computing system
  • Figure 2 is a flowchart illustrating a primality testing algorithm.
  • T 0 3 2,T? 3 • T n 3 -T 3 _, .
  • T n is the second T-sequence with the following terms:
  • T terms can grow exponentially large, but with the above identities as well as modulo arithmetic and a type of binary decomposition method described below, testing a given integer for primality is straightforward.
  • T 3 5 Ts ⁇ T7 - 3
  • T 3 7 T4 • T 3 - 3
  • T-sequences There are numerous interesting properties of T-sequences, one of which is expressed as
  • this characteristic can also be used to do general polynomial time factoring of composites.
  • a block diagram is shown of a computing system, e.g., a prime number computing system, in which T-sequences are used.
  • the computing system includes one or more processors, random-access memory, read-only (non-volative) memory, and an I/O subsystem.
  • the computing system is intended to be representative of all classes of computing systems, large and small, local or distributed.
  • Within memory is stored a routine for generating T-sequence terms.
  • the results of this routine are used by one or more other routines, e.g., a routine for primality testing, a routine for factoring, a prime number generator, a random number generator, etc.
  • routines find wide application, especially in data security, e.g., securely encrypting data or, by the opposite token, breaking a given encryption. The operation of various ones of these routines will now be described.
  • the T sequence may be used to perform primality testing (any other T f - sequence will do but T is convenient for use here).
  • the residues are computed
  • a fast and general method to determine the £ type of n in T ⁇ (to be used in proving and determining the genuine primality of n) is as follows. Given the values of any n and £, divide n by the determinant 2£ 2 - 8 and obtain the small residue r, that
  • the period k(r) must be greater than 2. When the period is 1 or 2, that £ value is not to be used.
  • the +£ type and the -£ type occur in equal proportion among all n and T . It can be shown that one £ with +£ type and another £ with -£ type can readily be found for any n.
  • a fast primality testing routine consists of the following three steps:
  • n can be declared to be composite and the routine stops here.
  • STEP B still misses some pseudoprimes or cofactor composites but when followed by STEP C, all possible exceptions in the form of proper cofactors or pseudoprimes will be sieved away, leaving only the genuine primes.
  • STEP C Find an £ which is of opposite £ type to that in STEP A in T 3 . If in STEP A the £ type of n in T 3 is -, then in this STEP C, find an £ for which the £ type of n is + in T and vice versa. This can be determined readily through the above- mentioned computations of small residue r or direct computations of
  • a variation of the foregoing algorithm uses the Jacobi to avoid blind trials seeking for opposite £ types.
  • JACOBIN - 4 n gives the £ type.
  • Primality Testing Summary. Following the above method of computation ensures that this primality testing algorithm is 100% general, deterministic, provable and polynomial-time. It runs as follows:
  • n is a genuine prime whenever n satisfies the conditions in these three steps:
  • a promising and viable factoring method is also based on the T-sequences. This method is unlike any previous method.
  • T-sequences allow all forms of composites to be factored, without exception, in polynomial time, simply because binary decomposition modulo C is fundamentally polynomial time. So far, mathematicians have only found exponential or sub-exponential time factoring algorithms for composites less than 200 digits, in general, and no polynomial-time factoring exists for even special forms of composites like the Mersenne numbers 2 - 1, etc. A simple extension of the T sequences, however, immediately provides just such a polynomial-time factoring algorithm (PTFA) for numerous special form composites with infinite membership.
  • PTFA polynomial-time factoring algorithm
  • the periods of the prime factors with respect to £ can only take on the patterns pi - 1 p] + 1 and p 2 - 1 ; p 2 + 1- Note that one can always flip the £ type to change p - 1 to p + 1 and vice versa by trying several pairs of £ values.
  • R m stands for T m (mod C), where m can be any arbitrary term or a function of the composite f(C) to be computed.
  • gcd (R 3 (C)- 2, C) 641.
  • this method bears a strikingly close relationship to the elliptic curve method. It is general and always polynomial time. No counterexamples have so far been found.
  • R n T n (mod n) is factored by taking a(R n ) ⁇ bR n ⁇ c (mod n). Taking the gcd of this relation minus 2 allows for factoring.
  • l ⁇ a ⁇ 4, -4 ⁇ b, c ⁇ + 4 and a ⁇ O .
  • Take 851 R, which comes from
  • 64570081 851 (mod 1871 -1) and 1870
  • 2(851) 2 + 851 - 3 ( 1870 x 775 ).
  • Prime number formula of this type can be constructed, upon reflection, it may be seen that the third requirement is inconsistent with the very definition of prime numbers, namely that they cannot be divided exactly by any other numbers other than themselves and 1.
  • the implication is that the primality of a positive integer n needs to be determined by a legitimate polynomial-time primality testing algorithm. Whether n is prime or composite cannot be ascertained right away. Rather, n must be tested for primality.
  • a prime number formula which is supposed to generate primes and not composites also needs to obey such a fundamental requirement.
  • Prime number formula is in essence one version of a primality testing algorithm; whereas the traditional formulation of a prime number formula is an NP problem, the foregoing formulation recast the problem such that NP ⁇ P.
  • a new prime number formula of the type described may be a ⁇ ived at by making use of a revised version of the Fortune Conjecture, i.e., P 1+1 - P ⁇ P 2 P 3 ...Pi is always a prime.
  • This can be shown to be equivalent to the conjecture that the small- est gap between two consecutive primes P 1+1 and P, is (InP, lnlnP,) 2 . If this gap is simplified to In P, then following Euclid's celebrated proof for the infinity of prime numbers, one can easily show that Fortune Conjecture is equivalent to this smallest gap conjecture. The validity of these two conjectures are well substantiated empirically as well as theoretically.
  • Q + P can always be arranged in such a way that will best minimize the number of computations needed to sieve out all the primes in any given range. E.g., there is a relatively large gap between 114 and 127.
  • RNG random number generator
  • the foregoing primality testing algorithm can be used generate an abundance of large primes such as cannot be generated in any other way.
  • the set of last prime digits can also be generated and a ⁇ anged in all sorts of arbitrary ways.
  • the seeds can be added or subtracted in any which way too. Without a complete knowledge of the exact seeds and their mathematical operations, no one can reproduce or deduce this type of random digits of the primes.
  • These random digits of primes behave in just as chaotic fashion as the physical subatomic particles in their distribution. Therefore this method can conveniently generate any length of random digits or numbers desired to use in mathematical research or industrial simulation.
  • This generator of random digits can be implemented easily and efficiently in both hardware and software.
  • Conventional RNGs such as linear or non-linear feedback shift registers always carry period patterns which are inherent. Non-periodicity is inherent in the foregoing random prime digit generator.
  • This RNG can also be easily modified into a simple but innovative cipher: a function Fi (such as transposition, shuffling, etc.) that operates on the last prime digit and another function F 2 that computes and determines the seeds are both kept secret.
  • F 2 is coupled to a simple but chaotic physical system such as dice-throwing, radioactive matter, etc., for the first random input as seeds.
  • the functions F 2 and Fi are used to generate a truly random string of digits such as 9, 7, 3, 1, 1, 9, 3, 3, 7, 3, 1, 3, 7, 9, 3, 9, 1, 1, 7, 7. This string of random digits can be used as a one-time pad for encryption.
  • the receiver who is informed only of the starting seeds (from the physical system input) can decrypt the ciphertext to obtain the plaintext since he also possesses F j and F 2 as well as the relevant table of primes like the sender. As long as F ] and F 2 are kept secret, no eavesdropper can decrypt the ciphertext.
  • the cipher can even be timed accordingly so that the functions Fj and F 2 change according to time changes or context changes. In any event, math theory about primes guarantees that the string of random digits thus generated are absolutely chaotic. No fixed inter-relationship can be derived from among themselves.

Abstract

Using a mathematical technique called the T-sequence, a primality testing method is disclosed. The approach is disclosed as performing factoring for numerous special cases, a method that is disclosed as extending to the general case. The same T-sequence is disclosed as constructing a prime number formula and a random number generator.

Description

T-SEQUENCE APPARATUS AND METHOD FOR GENERAL DETERMINISTIC POLYNOMIAL-TIME PRIMALITY TESTING AND COMPOSITE
FACTORING
BACKGROUND OF THE INVENTION
1. Field of the Invention
The present invention relates to prime and composite number computing and applications of the same, e.g., in the area of data security.
2. State of the Art
Prime numbers (2, 3, 5, 7, 11, 13, ..., those positive integers divisible only by themselves or 1) are the most fundamental building blocks of math, and with the invention of the public key ciphers (RSA, El Gamal and the like), they now form the backbone of computer security. Basically there are two problems related to the use of prime numbers in these fields, namely primality testing and factoring. The primal- ity testing problem is about testing and determining whether a given arbitrary positive integer is a prime number or a composite (non-prime) number. For a composite number, the factoring problem requires determining the composite number's prime factors. Practicality demands that these two problems have to be solved in polynomial time (computations being proportional to the number of digits and therefore fast), not exponential time (computations being proportional to the size of the numbers themselves and therefore too slow).
Traditionally, to decide whether a small integer is prime or composite, one can try to factor it with the smaller primes, but this trial division is too tedious for numbers greater than, say, 40 digits. Previously, experts have only been able to test for general primality up to about 2000 digits with certainty in a week of standard PC computational time. Several other faster methods have been devised to test larger integers, but they too fall short of expectations.
Presently over the Internet, record-size prime numbers over 10,000 or 100,000 digits are frequently found and published by researchers, but they are confined to special forms only (e.g., the most famous being the Lucas-Lehmer test for Mersenne numbers of the form 2M - 1). If given an arbitrary number, however, these researchers cannot test it in polynomial time. The stringent demands of several important ciphers require testing and generating large prime number of arbitrary forms and sizes.
There are four conditions in solving these problems:
1. Polynomial-time algorithm: the algorithm's speed needs to be proportional to a small power of the number of digits of that integer, e.g. d , instead of sub-exponential or exponential time, e.g., 2 .
2. 100% generality, i.e., the primality or factors of any arbitrary number can be determined.
3. Provability, i.e., it can be shown to work in all cases mathematically and no counterexamples can be found.
4. Deterministic in nature, i.e., the algorithm can determine the primality of a number with certainty and not with statistical probability.
Present techniques are unable to satisfy all four of these conditions simultaneously.
SUMMARY OF THE INVENTION Using a new mathematical technique called the T-sequence, the inventor has discovered a powerful primality testing method that meets all four conditions above. A similar approach can be applied to perform fast factoring for numerous special cases, a method that can, in all liklihood, be extended to the general case, making possible a general and fast factoring algorithm. (Researchers heretofore have been able to factor only in sub-exponential time, never in polynomial time.) The same T- sequence can be used to construct a prime number formula (long sought after but never achieved) and a good random number generator. The former can be used to generate infinitely many prime numbers of any size efficiently, and the latter can generate non-periodic and absolutely chaotic random numbers. These numbers are widely used in all areas of industrial and scientific simulations. In general, the T- sequence can be used to handle efficiently the fundamental problems concerning prime numbers (which include primality testing, factoring, prime number formula, infinite-pattern prime problem, etc.).
Whereas previously experts have only been able to test for general primality up to about 2000 digits with certainty in a week of standard PC computational time, now with this new approach it takes only eight seconds, by comparison. On a fast computer, numbers up to a million or more digits can also be tested for primality. All other techniques become impracticable beyond 2000 or so digits for general primality testing. This new approach enables mathematicians and computer scientists to test as well as generate prime numbers of any size or form to be used in mathematical research and computer cryptography.
BRIEF DESCRIPTION OF THE DRAWING The present invention may be further understood from the following description in conjunction with the appended drawing. In the drawing:
Figure 1 is a block diagram of a prime number computing system; and Figure 2 is a flowchart illustrating a primality testing algorithm.
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS T-Sequences: Definition.
Let n be a positive integer and £ ≥3 be the order. Then the general T- sequences are defined as follows:
£ £ I £ £
T0 = 2, Tj = £ and Tn + 1 = £ Tn - Tn_ , , where the subscript denotes the nth term while the superscript denotes the order £. Therefore the zeroth term is always 2 and the first term is always £; i.e., £ = 3 is the first T-sequence, the successive terms of which are given by
T0 3 = 2,T?
Figure imgf000006_0001
3 • Tn 3-T3_, .
4 .
Tn is the second T-sequence with the following terms:
T0 4 = 2,T4 = 4,T4= 14,T4 = 52,...,T4 +1 =4-Tn 4-T4_1 , etc.
There is a general and fundamental identify relating all T terms, as expressed by:
£ £ £
Tn n, + , _ n2 = T„ n, • Tn n, - „ n2 where n, \ > n- I> and n = n, \ + n- I>.
From this can be derived the following convenient identities:
(l)T2n+ι =Tn -Tn+i -Ti = Tn -Tn+ι -£ (odd nth terms)
£ £ £ £ £ 2
(2) T 2n = Tn -T n-To = (Tn ) -2 (even nth terms)
The T terms can grow exponentially large, but with the above identities as well as modulo arithmetic and a type of binary decomposition method described below, testing a given integer for primality is straightforward.
A numerical example serves to illustrate this approach. E.g., for n = 31 and £ = 3, binary decomposition is first performed (other forms of decomposition are feasible but are less practical):
π, = τ3 Tl6 Tis -3 τ3 Tl6 = (T| )2 - 2
3 3
T35 = Ts T7 - 3
T3s = (T4 3 )2-2
T37 = T4 T3 - 3
TΪ = (T )2-2 τl = T2 Ti - 3
Figure imgf000006_0002
For decomposition of odd terms D the quantity is computed. If the result is an odd number as in 31-1 = 15 , 1 is added to 15 to give 16 so that 31 16 + 15. If the result is an even number such as 37-1 = 18 , again 1 is added to 18
2 & to give 19 so that 37 = 18 + 19. The successive terms can then be computed by using
3 £ the above-mentioned identities. For odd nth terms such as T31 , the quantity Ti , or £, is always subtracted, which is 3 in this example. For even nth terms such as Ti6 ,
£ the quantity To , or 2, is always subtracted. The fundamental identify allows all these decompositions to be performed. Modulo arithmetic with respect to n and
£ recursive substitutions are then carried out using the fact that, always, To = 2 and
£ 3 3
Ti = £ ; that is, To = 2 , Ti = 3 in this example.
Computations are then started from the smallest term, that is
, 33 22 ~> 3
Ti - ( (TTii )) --22 == 33"" --22 == 77,Tτl3 - T32 T -3 = 7-3-3 = 18, and so on, with the residues always modulo 31 :
T31 = Tie -T35 -3 = 3-2-3 = 3
Figure imgf000007_0001
Therefore t can be determned that n t is example the 31st term of T" (mod 31) gives a residue of 3. Of course the residue of any term of T (mod n) can be readily computed whenever needed.
There are numerous intriguing properties of T-sequences, one of which is expressed as
Tn = equivalently
Figure imgf000007_0002
Tn = (-l )k n(n - k - l)!( )n-2k k = 0 k!(n - 2k)!
From this expression one can prove that all primes p will have to satisfy the
£ £ 2 relations T = £ (mod p) and Tp- ι = 2 or £ - 2 (mod p) , as in the numerical example above for the prime p = 31 :
T31 = 3 (mod 31) and T30 = 2 (mod 30) .
By using these T-sequences in connection with the primes p, another important and useful property in primality testing and factoring can be derived, the so- called periods k(p) consisting of two types, p + 1 and p -1. The former is called the +£ type and the latter the -t type. What is meant by this terminology can be illustrated by the following numerical examples:
Take £ = 3 and p = 7. Compute every term of T3 successively modulo 7; that is, every T3 term is divided by 7 to give the respective residues, until the residues repeat themselves. Thus using R as the residue and £ always equal to 3, one obtains for the modulo of prime p = 7: R0 = 2, R, = 3, R2 = 0, R3 = 4, R4 = 5, R5 = 4, R6 = 0, R7 = 3, Rg = 2, .... The next residue with 2 appears at the eighth term Rg = 2, thus the period k(7) = 8. Note that this period divides exactly into p + 1 , that is, k(p) |p + 1 => k(7) = 8 . Thus the prime 7 is said to be of the +£ type in T sequence.
Again take £ = 4 and p = 11. The residues of each T4 term, modulo 11 , are: R0 = 2, R, = 4, R2 = 3, R3 = 8, R4 = 7, R5 = 9, R6 = 7, R7 = 8, Rg = 3, R9 = 4, R10 = 2, .... The next residue of 2 appears at the 10th term R10 = 2, hence the period k(l 1) = 10. This period of 10 divides exactly into p - 1, that is, k(p) |(p — 1 ) ==> 101 11 — 1 . Thus the prime 1 1 is said to be of -£ type in T4 sequence.
There are no other possible patterns for prime modulo. (The £ type for composites will be shown in the following section describing the primality testing algorithm.) In essence, this unique characteristic of the T-sequences enables the primality of any positive integer to be determined, since only those numbers that are genuine primes can satisfy for appropriate £ values both
+ £ 2 + £ - £ - £
Tp- i ≡ ^ - 2 , Tp ≡ £ and Tp- ι ≡ 2 , Tp ≡ £ (all mod p) . Furthermore, this characteristic can also be used to do general polynomial time factoring of composites.
Computing Using T-Sequences
Referring now to Figure 1, a block diagram is shown of a computing system, e.g., a prime number computing system, in which T-sequences are used. The computing system includes one or more processors, random-access memory, read-only (non-volative) memory, and an I/O subsystem. The computing system is intended to be representative of all classes of computing systems, large and small, local or distributed. Within memory is stored a routine for generating T-sequence terms. The results of this routine are used by one or more other routines, e.g., a routine for primality testing, a routine for factoring, a prime number generator, a random number generator, etc. These routines find wide application, especially in data security, e.g., securely encrypting data or, by the opposite token, breaking a given encryption. The operation of various ones of these routines will now be described.
Primality Testing
Given any positive integer n, the T sequence may be used to perform primality testing (any other Tf- sequence will do but T is convenient for use here). Using binary decomposition and the above-mentioned methods, the residues are computed
3 3 3 3
Rn- i = Tn - i (mod n) and Rn = Tn (mod n) . For n to be an eligible candidate for prime, the residues have to be Rn - i = 2 or 2 - 2 and Rn = 3 . Any n which does not give such residues can immediately be declared composite. As will be explained below, it can be seen readily that any n with the last digit 1 or 9 will be of the -£ type in T3' whereas any n with the last digit 3 or 7 will be ofthe +^ type in T3.
A fast and general method to determine the £ type of n in T^ (to be used in proving and determining the genuine primality of n) is as follows. Given the values of any n and £, divide n by the determinant 2£2 - 8 and obtain the small residue r, that
2 is n ≡ r (mod 2£ - 8) . It can be shown that the £ type of n is the same as that of r. Since r is so small, direct computation of its residues in T^ will readily give the £
£ 2 £ type, knowing that by definition the £ type is + when Rr - 1 = £ - 1 and Rr = £
£ £
(both mod r), and is - when Rr- l = 2 and Rr = £ (both mod r). Note a few facts about the relationships between r and £:
1. The £ type is always - whenever r = £.
2. The small residue r must be coprime to the determinant, that is
(r, 2£ - 8) = 1. This means that whenever r is not coprime to 2£ - 8, that particular £ value is not used.
3. Besides r being coprime to the determinant, r needs to be greater than the value of £. Otherwise that particular £ value is not used.
4. The period k(r) must be greater than 2. When the period is 1 or 2, that £ value is not to be used.
5. Applying the above identities and binary decomposition methods to r will
£ I ( 2 I give Rr- i and Rr . Whenever Rr - 1 ≠ 2 or £ - 2 and/or Rr ≠ £ , that particular £ value will not be used. When
Rr- i = 2 or £~ - 2 and Rr = £, that particular £ value will be used.
6. The +£ type and the -£ type occur in equal proportion among all n and T . It can be shown that one £ with +£ type and another £ with -£ type can readily be found for any n.
For example, when n = 31, £ = 3 observe that r =1 since 31 =1 (mod • 3
2 • 3" - 8 = 10 ). It is then known from the facts above that 31 is of -£ type in T . On the other hand, when n = 37, /=3 observe that r = 7 since 37 = 7 (mod 2 3 3
2 - 3 - 8 = 10 ). The quantities R7 - 1 = 7 and R7 = 3 (both mod 7) are then computed, from which it appears that 7 is of +£ type in T . Hence 37 is also of +£ type in T .
To take another example, when n = 31 , £ = 4 observe that r = 7 since 31 = 7
(mod 2 - 4 - 8 = 24 ). Direct computations like those mentioned above give
4 4 4
R7_ ι = 7 and R7 = 4 (both mod 7). This shows that 7 is of +£ type in T and thus 31 must also be of +£ type in T4. On the other hand, when n = 37, £ = 4 observe that r = 13 since 37 = 13 (mod). Similar direct computations give
4 4 4
R 13 - 1 = 2 and R 13 = 4 (both mod 13). This shows that 13 is of -£ type in T and thus 37 must also be of -£ type in T . It is seen then that 31 and 37 are of opposite £ type in T and T .
Note that these small r residue computations can be skipped and the n residues computed directly for primality testing and ^-type decisions whenever r is indeterminate. The whole algorithm will still be in polynomial time owing to binary decomposition, which ensures that it is in polynomial time. The complexity is of the order of (log2n) .
Referring now to Figure 2, a fast primality testing routine consists of the following three steps:
STEP A: For any given positive integer n, first use £ = 3. From the above, determine the £ type of n in T3, -£ type for last digit 1 or 9, +£ type for last digit 3 or 7. Then compute the two residues
3 3 3 3
Rn- i = Tn - i (mod n) and Rn = Tn (mod n) .
3 2 3
If either Rn - 1 ≠ 2 or 7 (= - 2) and/or R n ≠ 3 , then n can be declared to be composite and the routine stops here.
Note that all composites which are not genuine primes or pseudoprimes or proper cofactors of T will be detected and sieved away in this STEP A.
3 2 3
IfRn - i = 2 or 7 (= £ - 2) (mod n) and Rn = 3 (mod n) then proceed to STEP B below. STEP B: This step performs a "greatest common factor sieving" to sieve away certain pseudoprimes. For example, take a composite n = 1729 = 7 x 13 x 19 and £ = 4. The number 1729 is a pseudoprime of T4 since
Ti729 = Ts65 - T864 - T4 = 914 - 821 - 4 = 4 (mod 1729) Ts65 = T433 - T432 - Ti = 641 • 1458 - 4 = 914 (mod 1729)
4 4
Take the odd term right below T 1729 , that is T 865 • Since the residue is
4 914 (mod 1729), subtract from this residue To giving 912. Using the Euclidean algorithm for the greatest common factor (gcd), compute gcd (912, 1729) = 19. This shows that 1729 is composite since 19 is one of its factors. (Computing gcd by the
Euclidean algorithm is useful in factoring.) In other words, for n to be a candidate
3 3 for prime, the odd term residue Rd right under Rn when 2 is subtracted must at
1 least be copπme to n: gcd(Rd - 2, n) = 1 .
STEP B still misses some pseudoprimes or cofactor composites but when followed by STEP C, all possible exceptions in the form of proper cofactors or pseudoprimes will be sieved away, leaving only the genuine primes.
STEP C: Find an £ which is of opposite £ type to that in STEP A in T3. If in STEP A the £ type of n in T3 is -, then in this STEP C, find an £ for which the £ type of n is + in T and vice versa. This can be determined readily through the above- mentioned computations of small residue r or direct computations of
£ 2 £
Tn - i ≡ 2 or £ - 2 (mod n) and Tn ≡ ^ (mod n).
If in STEP A Tn - 1 ≡ 2 (mod n) and Tn ≡ 3 (mod n), that is, -£ type, then if for another £ in which the £ type of n in T is opposite to that in T it
£ 2 £ holds that Tn - 1 ≡ £ - 2 (mod n) and Tn ≡ £ (mod n), that is, +£ type, it follows that n must be a genuine prime. If the residues are not as just stated, that n is declared to be composite. It is assured that, when n satisfies these conditions, n must be a genuine prime, because for any composite number, n = p , p2 say, it is impossible to satisfy all + and - divisibility conditions: Pj-ll n-1, p2 — 11 n- 1, Pj + lj n+ 1, ρ2+l| n+1 .
Only a genuine prime p can always satisfy these conditions when n = p. This completes STEP C.
A variation of the foregoing algorithm uses the Jacobi to avoid blind trials seeking for opposite £ types. In particular, taking JACOBIN - 4, n) gives the £ type. One strategy is to calculate the £ types beginning with £ = 3 until the lowest values of £ having opposite types have been found.
Primality Testing— Summary. Following the above method of computation ensures that this primality testing algorithm is 100% general, deterministic, provable and polynomial-time. It runs as follows:
The integer n is a genuine prime whenever n satisfies the conditions in these three steps:
STEPA:Tπ-ι ≡ 2 or 7 (modn) and Tn ≡3 (modn)
STEP B: gcd(Rd - 2, n) = 1
STEPC:Tn-ι =2 or ^2-2 (modn) and Tn ≡ £ (mod n) where the £ type of n in T^ is opposite to that in T3 as in STEP A. Failing to satisfy any one or more of these conditions will render n to be composite.
As may be seen from Table 1, the time and memory requirements required to test the primality of integers is very small compared to existing methods, and remains comparatively quite small even when testing primality of integers of unprecedented size.
Table 1
Figure imgf000014_0001
Polynomial-Time Factoring Routine
A promising and viable factoring method is also based on the T-sequences. This method is unlike any previous method.
The T-sequences allow all forms of composites to be factored, without exception, in polynomial time, simply because binary decomposition modulo C is fundamentally polynomial time. So far, mathematicians have only found exponential or sub-exponential time factoring algorithms for composites less than 200 digits, in general, and no polynomial-time factoring exists for even special forms of composites like the Mersenne numbers 2 - 1, etc. A simple extension of the T sequences, however, immediately provides just such a polynomial-time factoring algorithm (PTFA) for numerous special form composites with infinite membership.
The gist of this PTFA lies in the natural mathematical interrelationships between the composite C = PιP2, periods of its prime factors k(p|) and k(p2), residue r and order £.
The periods of the prime factors with respect to £ can only take on the patterns pi - 1 p] + 1 and p2 - 1; p2 + 1- Note that one can always flip the £ type to change p - 1 to p + 1 and vice versa by trying several pairs of £ values.
The first important thing to take advantage of in PTFA is that whenever the period residue rp lies close to p, it can readily be factored. One numerical example will illustrate this:
Take C = 91 (= 7 x 13). The possible periods k(p1 2) of 7 and 13 are, for 7, 7 - 1 = 6, 7 + 1 = 8, and for 13, 13 - 1 = 12, 13 + 1 = 14. When C = 91 is divided respectively by each of these four k(p1 2) the following period residue rp are obtained: 1, 3, 7, 7, obtained from 91 = 1 (mod 6), 91 = 3 (mod 8), 91 = 7 (mod 12), 91 = 7 (mod 14). Note how small the period residue rp for the prime factor 7 with the -£ type is, namely only 1. This implies that the factor 7 can be sieved out by taking the greatest common factor this way: gcd(R9i - I - 2, 91 ) = 7 . When £ = 6, 1 takes on a -£ type. So T91 mod 91 is first computed, which gives 76 as residue. Now - 6 = , and 1 is the rp for 7 - 1 in T91 . Thus one is able to factor by taking gcd(76
- 6, 91) = 7. Likewise T90 ≡ 72 (mod 91), therefore one can again factor by taking gcd(72 - 2, 91) = 7 as shown above.
Whenever the periods p + 1 or p - 1 [match?] the composite C in either the above straightforward way or a simple function like the cubic polynomial below,
±£ factoring can always be performed by taking gcd(Rf(c) ± 2 , C ) = one factor; here, -2 is used when the periods p + 1 or p - 1 divides exactly into f(C) and +2 is used whenever f(C) divided by p + 1 or p - 1 gives a residue of
Figure imgf000016_0001
, as is quite
£ £ often the case. The expression Rm stands for Tm (mod C), where m can be any arbitrary term or a function of the composite f(C) to be computed.
Again, to illustrate the this point, when +2 is added to 76 (the residue of T91 mod 91), factorization can be performed by taking gcd(R9ι +2 , 91 ) = gcd(76 + 2, 91 ) = 13 since 13 + 1 191 - — , i.e. l4|91 - 7
There are numerous sets of composites that can be factored readily because their factors' periods bear such a simple relationship to C. For example, composites of the form C = p[l + (p + l)(p + 2)] can always be factored readily in this way: gcd(Rc + ι - 2, C) = p . For example, take p = 11, C = 11(1 + 12 x 13) = 11 x 157 = 1727. By trials, quickly select a particular £ for which 11 is of the +£ type. When £ = 5, 11 is indeed of +£ type. Thus one can compute (mod 1727) = R 1728 = 167 and can factor in this way: gcd(167 - 2, 1727) = 11.
For C of the form p[l + (p - l)(p - 2)] there results gcd(Rc- 1 - 2, C) = p , e.g., C= 23(1 + 22 x 21) = 23 x 43 = 10649, enabling the following factorization: gcd(Rιo649 - 1 - 2, 10649) = 23 . Obviously, one can easily construct or find infinitely many such composites to factor. In general for C = p[l + m(p + 1)] where m is any prime or composite, C can always be factored as fol-
+£ lows: gcd(R c+ 1 - 2, C) = p .
For C= p[l + m(p - 1)], simply take gcd(Rc- 1 - 2, C) = p .
Furthermore, often the period of one prime factor of a composite happens to divide into the other prime factor or factors with a small enough residue, e.g.,
C = 147149 = 37 x 41 x 94. In this example, factoring begins by finding by trial that when C has subtracted from it a small number 2, i.e., 147149 - 2, it gives 147147 =
41 + 1 97 + 1
— — - (mod 41 + 1) and also 147147 = — — - (mod 97 + 1). Factorization then proceeds by taking gcd(RC-2 + 2 , C) = gcd(R 7i47 + 2 , 147149) = 41 x 97. Again it is obvious that there are infinitely many such composites. Quite often too, when C is multipled by a small integer, the period of a certain factor can divide exactly into this product of C by a small integer, allowing for ready factorization, e.g., C = 41 x 67 = 2747. Multiplying C by the small integer 3 gives 2747 x 3 = 82441. Originally, 2747 = 27 (mod 41 - 1), and 27 is too large a residue period to readily factor. However, 8241 = 1 (mod 41 - 1), and 1 is definitely small enough,
- c - £ leading to gcd( R3C- l -2 , C) = gcd(Rs240 - 2 , 2747) = 41. This constitutes another infinite set of composites that can be factored in polynomial time through PTFA by a few trials.
A powerful and very general PTFA method results from taking the cubic polynomial function of C to factor. It works as follows: f(C) = aC3 ± bC2 ± cC1 ± d where 0 < a,b,c,d < 4 . The method tests all the possible combinations; actually, there are basically just 497 combinations that need to
+ £ be computed for their respective T f(C) (mod c), because the foregoing expression
2 can be rewritten as f(C) = C(aC ± bC ± c) ± d , and since c and d will just be integers taken consecutively, the computation lends itself to use of the identity in T-
£ £ £ sequences: Tn + ι = • T n - Tn - 1 . Since 0 <a, b < 4, and since when a = 0, also b
= 0 and c = 0 in some cases, the results is only
5 x 2 x 2 x 2 x 5 - 3 = 497 combinations basically. Factorization is performed by tak-
±£ ing gcd( Rfc ± 2, C) = one factor, where f(C) stays positive. Two arbitrary examples will illustrate. Take C = 641 x 3469 = 2223629. Note
mod 640 mod 642 mod 3468 mod 3470
C1 269 383 641 2829 mod 640 mod 642 mod 3468 mod 3470
C2 41 313 1657 1421
C3 149 467 929 1749
Taking a = 1 , b = +3, c = -1 and d = -3, 641 can be factored out by selecting one £ for which 641 is of -£ type such as £ = 3: since 22233629 = 269 (mod) there results 149 + 3 x 41 - 269 - 3 = (269)3 + 3(269)2 -269 - 3 = (2223629)3 + 3(2223629)2 - 2223629 - 3 = f(C). Thus 641 can be factored out as follows: gcd (R3(C)- 2, C) = 641.
As another arbitrary example, take C = 4567 x 10837 = 49492579. Note the fixed relationship between the period residues of each prime factors, particularly when they are the RSA form of two prime composites, e.g., when C = p|(mod p2 + 1 ), where p2 is the larger prime and pj is the smaller prime factor. This is only one of the relationships that have been found. Others abound, such as the 641 residue under mod 3468 above and also the 4567 residue under mod 10836 here.
mod 4566 mod 4568 mod 10836 mod 10838
494925791 1705 2867 4567 6271
494925792 3049 1857 9025 5177
494925793 2437 2299 7867 5157
Again trials show that when a = 3, b = -4, c = -3, d = -4, 456813 C -4C2 - 3C - 4 = f(C). Thus a sieve action is achieved by selecting one £ for which 4567 carries +£ type, e.g., £ = 3. Factorization is performed by taking gcd(R3 C3 _4C-_ 3C_4 - 2, C) = 4567.
This formula can be linked to the fundamental Diophantine Equation (p+ l)x - Rp y = ±d where p and Rp are related by C = Rp(mod p± 1). This kind of Diophantine Equation is always solvable, e.g., in the previous example 640 x 3075 - 269 x 73167 = +3, giving much theoretical strength to this formula. Also, this method bears a strikingly close relationship to the elliptic curve method. It is general and always polynomial time. No counterexamples have so far been found.
Also very effective are the above-mentioned small residue factoring sieve as well as a quadratic polynomial factoring sieve not described here. Composites of an arbitrary number of prime factors can be handled and factored too. A 100% complete and efficient PTFA should be based upon such a formula or similar one.
In addition to the above methods, other factoring methods have been programmed and tested such as:
£ £ £ 2 £
(A). Rn = Tn (mod n) is factored by taking a(Rn ) ± bRn ± c (mod n). Taking the gcd of this relation minus 2 allows for factoring. Here l < a < 4, -4 < b, c < + 4 and a ≠ O . E.g., take n = 317 - 1 - = 64570081 ( = 1871 x 34511 ) . Take 851 = R, which comes from
64570081 = 851 (mod 1871 -1) and 1870|2(851)2 + 851 - 3 ( = 1870 x 775 ).Thus factorization can be performed by taking gcd (R2. n : + n _3 - 2, n) = 1871.
£ £
(B). Compute the four possible residues: (a) Rn (mod n), (b) Rn (mod 1-n), l (
(c) R^ . n (mod n) (d) R^ . n (mod 1-n). Use the residues as "inputs" for one or more layers of T-sequence modulo computation. Then factor by taking gcd
±£
(R^ n ± R, 4 + R, 4 ± f ± 2, n) = one prime factor. E.g., take the composite n = 2077 = 31 x 67. Let = 3, n = 3 x 2077 = 6231. There result the four Rs:
(a) R2077 = 719 (mod 2077)
(b) R2077 = 2796 (mod 6231)
(c) R623i = 1190 (mod 2077)
(d) R623i ≡ 3267 (mod 6231) When e = 1, f = -1, £ = + for 67, e.g., £ = 3 there results
1 x 2077 + (3267 - 719) - 1 = 4624 = 68 x 68. Factor by taking gcd(R4624 - 2, 2077) = (2682 - 2, 2077) = 67.
(C) Another method makes use of the recursive period pattern of certain primes, e.g., n = 2701 = 37 x 73. First compute T2701 = 1239 (mod 2701), T2702 =■ 1 49 (mod 2701). Square the larger, even term such as 2702 then subtract 2 (= T0), always (mod n), to compute the next even term. For the odd term such as
2701, to compute the next odd term, multiply the odd term by the larger even term and then subtract £, e.g., (1) 1239 (odd), 1749 (even) - (2) 806 (odd), 1467 (even), where 1239 x 1749 - 3 = 806 (mod 2701) and (1749)2 -2 = 1467 (mod 2701). Carry on these computations recursively until there emerges a repetitive pattern. Then often factoring can be performed by taking the gcd, e.g., gcd(806 - 3, 270) = 73, also gcd(1467 - 7, 2701) = 73.
(D) Whenever the ratio between the two factors of the composite n is less than 2, one can always factor by adding or subtracting from n by the nearest integer
[V4n - 4] , whereupon the residue (mod p± 1) is zero or just 1 away from p + 1 or p
43
- 1, e.g., 37 x 43 = 1591 and — = 1.1621 < 2 . Compute [J4 1591 - 4] = 80 and 1591 - 80 = 1511. By finding £ such as £ = 4 where 37 is -£ type but not 43, factorization is made possible by taking 1511 + 1 = 0 (mod 37 -1), i.e., gcd (R,59I _ /4 I SO] _4i + _ 2, 1591) = 37. There are again infinite number of composites with this convenient property, or the factors can be made to lie close in size to one another by simply multiplying the composite by a suitable small integer.
Factoring— Summary. T-sequences are closely tied in to factoring. There have been described several very promising polynomial-time factoring methods. The cubic polynomial PTFA seems to work the best, but other lines of attack are feasible too. Prime Number Formula. Traditionally, a prime number formula (which has never been found) has always had these requirements:
1) It always gives a prime number for each integer input n = 1, 2, 3, 4, ....
2) It is constructive, i.e., the formula can always be computed to give prime numbers. For example, Mills' formula p 3 gives no clue how to compute a precise value for A and is therefore not constructive. 3) It is forthright, i.e., it takes little time to readily compute the prime num- ber. For example, for the polynomial equation ax + bx + c = 0, the formula x = forthright in that it gives the roots readily.
Figure imgf000021_0001
On the face of it, these requirements seem natural enough. Seekers of prime number formula have always exerted their best efforts to find a prime number formula that satisfies these three requirements. The continuing failure to find such a prime number formula has caused many researchers to conclude no such formula exists.
While it appears doubtful that a prime number formula of this type can be constructed, upon reflection, it may be seen that the third requirement is inconsistent with the very definition of prime numbers, namely that they cannot be divided exactly by any other numbers other than themselves and 1. The implication is that the primality of a positive integer n needs to be determined by a legitimate polynomial-time primality testing algorithm. Whether n is prime or composite cannot be ascertained right away. Rather, n must be tested for primality. A prime number formula which is supposed to generate primes and not composites also needs to obey such a fundamental requirement.
Now redefine a prime number formula as one that satisfies the three requirements:
1) It always gives a prime number for each integer input n = l, 2, 3, ....
2) It is always constructive.
3) It possesses polynomial-time complexity.
Since a prime number formula is in essence one version of a primality testing algorithm; whereas the traditional formulation of a prime number formula is an NP problem, the foregoing formulation recast the problem such that NP → P.
A new prime number formula of the type described may be aπived at by making use of a revised version of the Fortune Conjecture, i.e., P1+1 - PιP2P3...Pi is always a prime. This can be shown to be equivalent to the conjecture that the small- est gap between two consecutive primes P1+1 and P, is (InP, lnlnP,)2. If this gap is simplified to In P,, then following Euclid's celebrated proof for the infinity of prime numbers, one can easily show that Fortune Conjecture is equivalent to this smallest gap conjecture. The validity of these two conjectures are well substantiated empirically as well as theoretically. It is known that the maximum gap between two consecutive primes must be rounded by the order of InP,. Any such logarithmic gap will do just fine for the following prime number formula gap or range: g = ( lnP^P2... P, ) . According to Fortune/Smallest Gap Conjecture there is at least one prime between Q and Q + g. The method therefore needs to compute only these sums: Q + P1+], Q + P1+ , ... Q + PJ; where Pj is the largest prime smaller than g. There is at least one prime among these sums, and by applying the primality testing method described previously, the primality of each sum can be determined rapidly. Actually, it is also useful to compute the differences: Q - P,+1, Q - P1+2, ... Q - P.. It turns out that practically all such differences give not just one but many primes within the range.
One numerical example illustrates this formula clearly: Let P, = 2, P2 = 3, P3 = 5, and a = 2, b = 1, x = 2. Then
Q = PΪP2P3 = 22 - 3 - 52 = 300, (In 300)2 « 32.5 . That means there is a need to compute only these numbers 300 ± 7, 300 ± 11, 300 ± 13, 300 ± 17, 300 ± 19, 300 ± 23, 300 ± 29, 300 ± 31. (The numbers 300 + 1 are not computed here). Among these 16 numbers, the foregoing primality testing algorithm or a similar algorithm enables us to sieve out 11 prime numbers. The conjecture tells us that there are at least two primes. The method obtains 1 1 out of 16; this is a high yield of primes. In fact, even for big numbers this formula or sieve will still yield large quantities of primes consistently, with an estimated or 36.78% of the sums and differences being prime. One condition which must be observed at all times is that InP , P2... P, must always be smaller than the next prime after P,, that is P1+1.
One can also add or subtract a large product with a small product e.g. 22 • 3 • 52 = 300 and 22 • 32 = 36 , giving 300 + 36 = 336. The smallest gap in this case will be determined by (In 36)2 = 12.84. Among the differences 336 - 5 = 331 is found to be prime, in line with the conjecture. In short the possible number of candidates for primes can always be minimized so that the greatest number of composites is filtered out beforehand.
Note that Q + P, can always be arranged in such a way that will best minimize the number of computations needed to sieve out all the primes in any given range. E.g., there is a relatively large gap between 114 and 127. Computing
2 3
2 - 3 - 5 + 2 - 3 = 114 would require computation of 114 + 5, 7, 11, 13, i.e., four steps too many. Instead, choose 2 • 3 • 5 = 120 which allows computation of the immediate primes as 120 + 7 = 127 and 120 - 7 = 113. This gives all primes within that range readily while skipping all the composite candidates simultaneously. In fact, using a few trials and checks beforehand, one can always manage to optimize the yield of primes within the range efficiently. Large primes can then be chunked out much faster and consistently, all the time based on this prime number sieving algorithm.
This approach makes it possible to compute a large prime. This formula, along with adding or subtracting suitable sums or differences, will readily generate many other primes around this large prime.
Random Number Generator
Mathematically a good random number generator (RNG) should be infinitely non-periodic, such that no generated number can be deduced from any previous number. Of course, statistical tests like the chi-square test can be applied to ensure that all digits are distributed 100% randomly with no bias whatsoever. Admittedly, if only math is concerned, a fixed input will always yield a fixed output. Only physical systems like the quantum mechanical systems can give "dynamically genuine" random numbers. Coupling these two notions together, it is possible to construct a pow- erful and convenient RNG.
First, note the fact that the last digits of all primes, except 2 and 5, can only be 1, 3, 7 and 9. They are distributed absolutely randomly among the infinite set of positive integers. The very definition of prime number demands this, since prime numbers can only be divided exactly by 1 and themselves. Thus by taking the last digits only and ignoring the trivial 2 and 5, from the prime set 3, 7,11, 13, 17, 19, 23, 29, 31, etc., one obtains the random digits 3, 7, 1, 3, 7, 9, 3, 9, 1, 7, 1, 3, 7, 3, 9, 1, 7, 1, 3, 9, 3, 9, 7 for primes from 3 to 97. These digits form an infinite set, and no digit can be derived from the previous or succeeding ones. Each one of the four digits appears 25% of the time. Above all, they are absolutely non-periodic.
The prime-number formula based on the T-sequence polynomial-time primality testing algorithm provides infinitely many variations of these random prime digits, e.g., take 2 x 3 x 5 x 7 = 210. Based on the formula presented previously, add or subtract all the primes between 7 < 11 and 47 < 7 , to test each sum or difference for primality. From the seed 210 onward one obtains the sums +1, +11, +13, +17, ... + 47 which give this set of random digits: 1, 3, 7, 9, 3, 9, 1, 1, 7 from 211 to 257. The differences -1, -11, -13, -17, ... -47 give another set of random digits: 9, 7, 3, 1, 1, 9, 3, 3, 7, 3 from 199 back to 163. Of course, the foregoing primality testing algorithm can be used generate an abundance of large primes such as cannot be generated in any other way.
2 ~>
Since the seeds such as 2 - 3 - 5 or 2 3" • 5 • 7 , etc. can be varied in infinitely many ways, the set of last prime digits can also be generated and aπanged in all sorts of arbitrary ways. The seeds can be added or subtracted in any which way too. Without a complete knowledge of the exact seeds and their mathematical operations, no one can reproduce or deduce this type of random digits of the primes. These random digits of primes behave in just as chaotic fashion as the physical subatomic particles in their distribution. Therefore this method can conveniently generate any length of random digits or numbers desired to use in mathematical research or industrial simulation. This generator of random digits can be implemented easily and efficiently in both hardware and software. Conventional RNGs such as linear or non-linear feedback shift registers always carry period patterns which are inherent. Non-periodicity is inherent in the foregoing random prime digit generator.
This RNG can also be easily modified into a simple but innovative cipher: a function Fi (such as transposition, shuffling, etc.) that operates on the last prime digit and another function F2 that computes and determines the seeds are both kept secret. F2 is coupled to a simple but chaotic physical system such as dice-throwing, radioactive matter, etc., for the first random input as seeds. The functions F2 and Fi are used to generate a truly random string of digits such as 9, 7, 3, 1, 1, 9, 3, 3, 7, 3, 1, 3, 7, 9, 3, 9, 1, 1, 7. This string of random digits can be used as a one-time pad for encryption. The receiver who is informed only of the starting seeds (from the physical system input) can decrypt the ciphertext to obtain the plaintext since he also possesses Fj and F2 as well as the relevant table of primes like the sender. As long as F] and F2 are kept secret, no eavesdropper can decrypt the ciphertext. The cipher can even be timed accordingly so that the functions Fj and F2 change according to time changes or context changes. In any event, math theory about primes guarantees that the string of random digits thus generated are absolutely chaotic. No fixed inter-relationship can be derived from among themselves.
It will be appreciated by those of ordinary skill in the art that the invention can be embodied in other specific forms without departing from the spirit or essential character thereof. The presently disclosed embodiments are therefore considered in all respects to be illustrative and not restrictive. The scope of the invention is indicated by the appended claims rather than the foregoing description, and all changes which come within the meaning and range of equivalents thereof are intended to be embraced therein.

Claims

What is claimed is:
1. A computer-implemented method, comprising: determining at least one element of a non-montonic sequence, the non-montonic sequence being one of a family of related non-montonic sequences; using at least said element, determining at least one property of a number; and depending on said property, taking an action the effect of which is to enhance or degrade data security within a computer system or network.
2. The method of Claim 1 , wherein said property is primality.
3. The method of Claim 1, wherein said number is a composite number, and said property is a factor of said number.
4. The method of Claim 1 , wherein said family of related non-montonic sequences is defined as follows:
T0' = 2, Tf = 1 and l[ + , = / . Tn f - Tn'_ , , where the subscript denotes the nth term while the superscript denotes the order £.
5. A prime number generator, comprising: means for generating candidate numbers by forming at least one of sums and differences of a given number and a series of prime numbers; and means for deterministically evaluating primality of each of the candidate numbers in polynomial time.
6. The apparatus of Claim 5, wherein said means for deterministically evaluating primality comprises means for determining at least one element of a non- montonic sequence, the non-montonic sequence being one of a family of related non-montonic sequences.
7. The apparatus of Claim 6, wherein said family of related non-montonic sequences is defined as follows:
T = 2, Tf = £ and l[ + , = £ - Tn' - Tn'_ , , where the subscript denotes the nth term while the superscript denotes the order £.
8. A random number generator, comprising: means for determining a seed number; means for forming at least one of sums and differences of the seed number and a series of prime numbers; and means for outputting last digits of the series of prime numbers to produce a set of random digits.
PCT/US2000/020199 1999-07-26 2000-07-25 T-sequence apparatus and method for general deterministic polynomial-time primality testing and composite factoring WO2001008350A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
AU63724/00A AU6372400A (en) 1999-07-26 2000-07-25 T-sequence apparatus and method for general deterministic polynomial-time primality testing and composite factoring

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
US14558599P 1999-07-26 1999-07-26
US60/145,585 1999-07-26
US09/559,142 2000-04-27

Publications (1)

Publication Number Publication Date
WO2001008350A1 true WO2001008350A1 (en) 2001-02-01

Family

ID=22513747

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/US2000/020199 WO2001008350A1 (en) 1999-07-26 2000-07-25 T-sequence apparatus and method for general deterministic polynomial-time primality testing and composite factoring

Country Status (3)

Country Link
US (2) US20020099746A1 (en)
AU (1) AU6372400A (en)
WO (1) WO2001008350A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007020564A2 (en) * 2005-08-19 2007-02-22 Nxp B.V. Circuit arrangement and method for rsa key generation
DE102006045224A1 (en) * 2006-09-26 2008-01-24 Dl-Daten Gmbh Front page inconsistent with disclosure, abstract based on front page. Patent Office notified - User data transfer integrity connection authentication and checking method, involves authenticating and checking between two or more patterns
FR2905776A1 (en) * 2006-09-11 2008-03-14 Bigilimwatshi Guy Boyo Electronic and/or computing device for factorizing integer, has calculating unit including main variable that associates integer to be factorized with counter of clock, where variable is integration of elementary calculating units
DE102005026943B4 (en) * 2004-06-07 2009-01-29 Rockwell Electronic Commerce Corp., Wood Dale Method and system for secure customer communication
US7552164B1 (en) 2008-04-24 2009-06-23 International Business Machines Corporation Accelerated prime sieving using architecture-optimized partial prime product table

Families Citing this family (47)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI244610B (en) * 2001-04-17 2005-12-01 Matsushita Electric Ind Co Ltd Information security device, prime number generation device, and prime number generation method
US20060034456A1 (en) * 2002-02-01 2006-02-16 Secure Choice Llc Method and system for performing perfectly secure key exchange and authenticated messaging
US6718536B2 (en) * 2002-06-21 2004-04-06 Atmel Corporation Computer-implemented method for fast generation and testing of probable prime numbers for cryptographic applications
US8229108B2 (en) * 2003-08-15 2012-07-24 Broadcom Corporation Pseudo-random number generation based on periodic sampling of one or more linear feedback shift registers
US7860918B1 (en) 2006-06-01 2010-12-28 Avaya Inc. Hierarchical fair scheduling algorithm in a distributed measurement system
US8312551B2 (en) * 2007-02-15 2012-11-13 Harris Corporation Low level sequence as an anti-tamper Mechanism
US7937427B2 (en) * 2007-04-19 2011-05-03 Harris Corporation Digital generation of a chaotic numerical sequence
US8611530B2 (en) * 2007-05-22 2013-12-17 Harris Corporation Encryption via induced unweighted errors
US7921145B2 (en) * 2007-05-22 2011-04-05 Harris Corporation Extending a repetition period of a random sequence
US7995757B2 (en) * 2007-05-31 2011-08-09 Harris Corporation Closed galois field combination
US7970809B2 (en) * 2007-06-07 2011-06-28 Harris Corporation Mixed radix conversion with a priori defined statistical artifacts
US7962540B2 (en) * 2007-06-07 2011-06-14 Harris Corporation Mixed radix number generator with chosen statistical artifacts
US7974413B2 (en) * 2007-06-07 2011-07-05 Harris Corporation Spread spectrum communications system and method utilizing chaotic sequence
US8005221B2 (en) * 2007-08-01 2011-08-23 Harris Corporation Chaotic spread spectrum communications system receiver
US7876690B1 (en) 2007-09-26 2011-01-25 Avaya Inc. Distributed measurement system configurator tool
US7995749B2 (en) * 2007-10-30 2011-08-09 Harris Corporation Cryptographic system configured for extending a repetition period of a random sequence
US8180055B2 (en) * 2008-02-05 2012-05-15 Harris Corporation Cryptographic system incorporating a digitally generated chaotic numerical sequence
US8363830B2 (en) 2008-02-07 2013-01-29 Harris Corporation Cryptographic system configured to perform a mixed radix conversion with a priori defined statistical artifacts
US8040937B2 (en) * 2008-03-26 2011-10-18 Harris Corporation Selective noise cancellation of a spread spectrum signal
US8139764B2 (en) * 2008-05-06 2012-03-20 Harris Corporation Closed galois field cryptographic system
US8320557B2 (en) 2008-05-08 2012-11-27 Harris Corporation Cryptographic system including a mixed radix number generator with chosen statistical artifacts
US8145692B2 (en) 2008-05-29 2012-03-27 Harris Corporation Digital generation of an accelerated or decelerated chaotic numerical sequence
US8200728B2 (en) * 2008-05-29 2012-06-12 Harris Corporation Sine/cosine generator
US8064552B2 (en) * 2008-06-02 2011-11-22 Harris Corporation Adaptive correlation
US8068571B2 (en) * 2008-06-12 2011-11-29 Harris Corporation Featureless coherent chaotic amplitude modulation
US8325702B2 (en) * 2008-08-29 2012-12-04 Harris Corporation Multi-tier ad-hoc network in which at least two types of non-interfering waveforms are communicated during a timeslot
US8165065B2 (en) * 2008-10-09 2012-04-24 Harris Corporation Ad-hoc network acquisition using chaotic sequence spread waveform
US8406276B2 (en) * 2008-12-29 2013-03-26 Harris Corporation Communications system employing orthogonal chaotic spreading codes
US8351484B2 (en) * 2008-12-29 2013-01-08 Harris Corporation Communications system employing chaotic spreading codes with static offsets
US8457077B2 (en) * 2009-03-03 2013-06-04 Harris Corporation Communications system employing orthogonal chaotic spreading codes
FR2946207A1 (en) * 2009-05-28 2010-12-03 Proton World Internat Nv PROTECTION OF FIRST NUMBER GENERATION FOR RSA ALGORITHM
US8509284B2 (en) * 2009-06-08 2013-08-13 Harris Corporation Symbol duration dithering for secured chaotic communications
US8428102B2 (en) * 2009-06-08 2013-04-23 Harris Corporation Continuous time chaos dithering
US8428103B2 (en) * 2009-06-10 2013-04-23 Harris Corporation Discrete time chaos dithering
US8406352B2 (en) 2009-07-01 2013-03-26 Harris Corporation Symbol estimation for chaotic spread spectrum signal
US8385385B2 (en) 2009-07-01 2013-02-26 Harris Corporation Permission-based secure multiple access communication systems
US8369376B2 (en) * 2009-07-01 2013-02-05 Harris Corporation Bit error rate reduction in chaotic communications
US8379689B2 (en) * 2009-07-01 2013-02-19 Harris Corporation Anti-jam communications having selectively variable peak-to-average power ratio including a chaotic constant amplitude zero autocorrelation waveform
US8363700B2 (en) 2009-07-01 2013-01-29 Harris Corporation Rake receiver for spread spectrum chaotic communications systems
US8428104B2 (en) 2009-07-01 2013-04-23 Harris Corporation Permission-based multiple access communications systems
US8340295B2 (en) * 2009-07-01 2012-12-25 Harris Corporation High-speed cryptographic system using chaotic sequences
US8848909B2 (en) * 2009-07-22 2014-09-30 Harris Corporation Permission-based TDMA chaotic communication systems
US8369377B2 (en) 2009-07-22 2013-02-05 Harris Corporation Adaptive link communications using adaptive chaotic spread waveform
JP2011123356A (en) * 2009-12-11 2011-06-23 Oki Semiconductor Co Ltd Prime number generating device, prime number generating method, and prime number generating program
WO2011089143A1 (en) * 2010-01-20 2011-07-28 Intrinsic Id B.V. Device and method for obtaining a cryptographic key
US8345725B2 (en) 2010-03-11 2013-01-01 Harris Corporation Hidden Markov Model detection for spread spectrum waveforms
US20140344319A1 (en) * 2013-05-14 2014-11-20 Daljit Singh Jandu Algorithm for primality testing based on infinite, symmetric, convergent, continuous, convolution ring group

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5351298A (en) * 1991-09-30 1994-09-27 Smith Peter J Cryptographic communication method and apparatus

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US744041A (en) * 1901-09-21 1903-11-17 Charles G Burke Telegraphic code.
NL279100A (en) * 1961-05-30
DE2658065A1 (en) * 1976-12-22 1978-07-06 Ibm Deutschland MACHINE ENCRYPTION AND DECHIFREEZE
US4218582A (en) * 1977-10-06 1980-08-19 The Board Of Trustees Of The Leland Stanford Junior University Public key cryptographic apparatus and method
US4351982A (en) * 1980-12-15 1982-09-28 Racal-Milgo, Inc. RSA Public-key data encryption system having large random prime number generating microprocessor or the like
US4740890A (en) * 1983-12-22 1988-04-26 Software Concepts, Inc. Software protection system with trial period usage code and unlimited use unlocking code both recorded on program storage media
US4988987A (en) * 1985-12-30 1991-01-29 Supra Products, Inc. Keysafe system with timer/calendar features
US5058160A (en) * 1988-04-29 1991-10-15 Scientific-Atlanta, Inc. In-band controller
IL108645A (en) * 1994-02-14 1997-09-30 Elementrix Technologies Ltd Protected communication method and system
US5787172A (en) * 1994-02-24 1998-07-28 The Merdan Group, Inc. Apparatus and method for establishing a cryptographic link between elements of a system
US5663896A (en) * 1994-09-22 1997-09-02 Intel Corporation Broadcast key distribution apparatus and method using Chinese Remainder
US5594797A (en) * 1995-02-22 1997-01-14 Nokia Mobile Phones Variable security level encryption
US5724428A (en) * 1995-11-01 1998-03-03 Rsa Data Security, Inc. Block encryption algorithm with data-dependent rotations
US5771291A (en) * 1995-12-11 1998-06-23 Newton; Farrell User identification and authentication system using ultra long identification keys and ultra large databases of identification keys for secure remote terminal access to a host computer
US6219421B1 (en) * 1997-10-24 2001-04-17 Shaul O. Backal Virtual matrix encryption (VME) and virtual key cryptographic method and apparatus

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5351298A (en) * 1991-09-30 1994-09-27 Smith Peter J Cryptographic communication method and apparatus

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
"Lucas sequences in cryptography", 5 November 1997 (1997-11-05), XP002934558, Retrieved from the Internet <URL:http://www.eskimo.com/~weidai/lucas.html> [retrieved on 20001010] *
"The Prime Glossary, ref. cited as Golomb81", 1981, XP002934557, Retrieved from the Internet <URL:http://www.utm.edu/research/primes/glossary/FortunateNumber.html> [retrieved on 20001010] *
B. SCHNEIER: "Applied Cryptography", 1996, XP002934559 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102005026943B4 (en) * 2004-06-07 2009-01-29 Rockwell Electronic Commerce Corp., Wood Dale Method and system for secure customer communication
WO2007020564A2 (en) * 2005-08-19 2007-02-22 Nxp B.V. Circuit arrangement and method for rsa key generation
WO2007020564A3 (en) * 2005-08-19 2007-05-31 Koninkl Philips Electronics Nv Circuit arrangement and method for rsa key generation
US8265265B2 (en) 2005-08-19 2012-09-11 Nxp B.V. Circuit arrangement and method for RSA key generation
FR2905776A1 (en) * 2006-09-11 2008-03-14 Bigilimwatshi Guy Boyo Electronic and/or computing device for factorizing integer, has calculating unit including main variable that associates integer to be factorized with counter of clock, where variable is integration of elementary calculating units
DE102006045224A1 (en) * 2006-09-26 2008-01-24 Dl-Daten Gmbh Front page inconsistent with disclosure, abstract based on front page. Patent Office notified - User data transfer integrity connection authentication and checking method, involves authenticating and checking between two or more patterns
US7552164B1 (en) 2008-04-24 2009-06-23 International Business Machines Corporation Accelerated prime sieving using architecture-optimized partial prime product table

Also Published As

Publication number Publication date
US9542158B2 (en) 2017-01-10
US20040057580A1 (en) 2004-03-25
US20020099746A1 (en) 2002-07-25
AU6372400A (en) 2001-02-13

Similar Documents

Publication Publication Date Title
WO2001008350A1 (en) T-sequence apparatus and method for general deterministic polynomial-time primality testing and composite factoring
JP4842993B2 (en) Mixed radix generator with selected statistical artifacts
EP2056519B1 (en) Cryptographic system configured for extending a repetition period of a random sequence
EP2000900B1 (en) Extending a repetition period of a random sequence
US8180055B2 (en) Cryptographic system incorporating a digitally generated chaotic numerical sequence
Chen et al. Period distribution of generalized discrete Arnold cat map for $ N= p^{e} $
JPH04250490A (en) Encrypting system based on chaos theory
Ambedkar et al. A new factorization method to factorize rsa public key encryption
JPWO2007080652A1 (en) Montgomery method multiplication remainder calculator
Boruah et al. Implementation of ElGamal Elliptic Curve Cryptography over prime field using C
Sheela et al. Application of chaos theory in data security-a survey
Ruohonen Mathematical cryptology
Joye et al. Fast generation of prime numbers on portable devices: An update
Coron et al. On Kilian’s randomization of multilinear map encodings
Sudeepa et al. Generation of maximum length non-binary key sequence and its application for stream cipher based on residue number system
JP3616897B2 (en) Montgomery method multiplication remainder calculator
Von Zur Gathen et al. Generating safe primes
Wardlaw The RSA public key cryptosystem
Shparlinski On the uniformity of distribution of the Naor–Reingold pseudo-random function
JP2003507761A (en) Pseudo random number forming method and digital signature method
Gammel et al. Linear filtering of nonlinear shift-register sequences
Holden et al. New conjectures and results for small cycles of the discrete logarithm
Gaeini et al. A new pseudo-random number generator based on chaotic maps and linear feedback shift register
Ngendahimana et al. RSA Cryptosystem Speed Security Enhancement (Hybrid and Parallel Domain Approach)
Khalfin Application of the Chinese Remainder Theorem to Cryptography and Cybersecurity

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): AE AG AL AM AT AU AZ BA BB BG BR BY BZ CA CH CN CR CU CZ DE DK DM DZ EE ES FI GB GD GE GH GM HR HU ID IL IN IS JP KE KG KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX MZ NO NZ PL PT RO RU SD SE SG SI SK SL TJ TM TR TT TZ UA UG US UZ VN YU ZA ZW

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): GH GM KE LS MW MZ SD SL SZ TZ UG ZW AM AZ BY KG KZ MD RU TJ TM AT BE CH CY DE DK ES FI FR GB GR IE IT LU MC NL PT SE BF BJ CF CG CI CM GA GN GW ML MR NE SN TD TG

121 Ep: the epo has been informed by wipo that ep was designated in this application
DFPE Request for preliminary examination filed prior to expiration of 19th month from priority date (pct application filed before 20040101)
REG Reference to national code

Ref country code: DE

Ref legal event code: 8642

122 Ep: pct application non-entry in european phase
NENP Non-entry into the national phase

Ref country code: JP