Graduate Is it possible to locate prime numbers through addition only

Click For Summary
SUMMARY

This discussion centers on the exploration of prime number generation through addition, specifically referencing a bi-linear advancement method developed by a user utilizing QB6. The code successfully locates prime numbers up to 4.9 billion, employing a unique approach to sieve of Eratosthenes and linear tables for efficient storage and retrieval. The conversation also touches on the limitations of traditional prime-generating algorithms and highlights the discovery of a prime-generating polynomial by James Jones and others in 1977, which claims to find all primes.

PREREQUISITES
  • Understanding of prime number theory
  • Familiarity with the sieve of Eratosthenes
  • Basic programming skills in QB6
  • Knowledge of mathematical algorithms for prime generation
NEXT STEPS
  • Research advanced algorithms for prime number generation
  • Explore the implementation of the sieve of Eratosthenes in modern programming languages
  • Study the prime-generating polynomial by James Jones et al. from 1977
  • Learn about the performance comparison of different factorization tools, including Mathematica's FactorInteger
USEFUL FOR

Mathematicians, computer scientists, and software developers interested in prime number generation, algorithm optimization, and mathematical theory related to primes.

Carl A Bohn
Messages
3
Reaction score
0
I was reading an old thread about multiplying successive prime numbers adding 1 to obtain another prime number.
I have worked with prime numbers for several years now and have developed what I best call a bi-linear advancement. It is an open-ended sieve of Eratosthenes. After many, many hours across the years, I have finally developed a piece of code that locates prime numbers. I built it on a small laptop in QB6, and so far it is locating primes out in the 4.9 billion range. (Time elapsed: 18 hours.)
Actually, I am locating all the prime-subs. From there, I am able to extract all the intervening prime numbers.
The one key issue I had to deal with is the prime numbers 2,3, and 5. I found a way to extract those multiples from the process, then discovered a rather unique way of grouping prime numbers. The rest of it is just plain math. But, I took it a step further a developed a system of linear tables that reduces the whole process down to a lookup table. I also have a very unique way to store prime numbers in a very condensed form.
 
Mathematics news on Phys.org
Folks have been trying to come up with a magic prime number generator for centuries and all have failed.

The Eratosthenes method is perhaps the only one. It was used to prove that primes are infinite ie that having found all primes to a certain point it’s possible to make a composite number as the product of all these primes plus one to be a new prime.

If you use it as a generator it misses primes.

We start with 2 as the first prime, so then 2+1=3 the next prime.

Next we say 2*3+1 = 7 which is prime but we have skipped 5 and the process breaks as a generator of primes.

I’m sure we could somehow fix the algorithm but then some higher prime will be missed and so it goes. The primes are just impossible to work with they appear to have no known pattern for generation for all primes although we might find an algorithm that works some of the time.
 
These sieves work well for small numbers, but finding primes for small numbers is a trivial task for computers anyway. Computers can factorize 40-digit primes numbers in less than a second, and check 100-digit numbers for primality in the same time.

Here is a web tool if you want to try it yourself. A random 47-digit number which is hard to factorize is 28701392776125735524335735103358699296374619111.
 
Last edited:
  • Like
Likes Rada Demorn
Sorry about off-topic, but yesterday I was thinking about prime numbers and wondered whether for any finite set of integers ##A = \{a_1 ,a_2 , \dots ,a_n \}## it is possible to find a base number ##b \in \mathbb{R}## such that ##\log_b a## is rational for all ##a \in A##. This is probably not possible, but if it were, then the logarithm of any integer that is a product of integers belonging in ##A## would also be rational.
 
mfb said:
Computers can factorize 40-digit primes in less than a second
Humans can factorize primes in O(1).
 
  • Like
Likes DrClaude
mfb said:
Here is a web tool if you want to try it yourself. A random 47-digit number which is hard to factorize is 28701392776125735524335735103358699296374619111.
Nice program @mfb ! I tested it on :
1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567891

Took about 1:45 hours on my computer to factorize. Now I am testing it on the latest version of Mathematica. See which one is faster.

EDIT--- Mathematica rocks! 30 mins with FactorInteger.
 
Last edited:
@Carl A Bohn Do not waste your time. Regarding one of your previous threads (now closed) a prime-generating polynomial has been found by James Jones, Daihachiro Sato, Hideo Wada and Douglas Wiens in 1977. Yes, it finds all primes!
 

Similar threads

  • · Replies 16 ·
Replies
16
Views
5K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 19 ·
Replies
19
Views
4K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 228 ·
8
Replies
228
Views
37K
  • · Replies 125 ·
5
Replies
125
Views
20K
  • · Replies 105 ·
4
Replies
105
Views
14K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 27 ·
Replies
27
Views
4K