image
Physics Forums Logo
image
image
* Register * Upgrade Blogs Library Staff Rules Mark Forums Read
image
image   image
image

Go Back   Physics Forums > Mathematics > Number Theory


Reply

image A prime generator I discovered Share It Thread Tools Search this Thread image
Old May13-09, 06:07 PM                  #1
Loren Booda
 
Loren Booda's Avatar

Loren Booda is Offline:
Posts: 3,126
Recognitions:
PF Contributor PF Contributor
A prime generator I discovered

Somewhere between brute force and Mersenne derivation of primes is the formula I found,

LaTeX Code: \\prod_{n=1}^Np_n-1=p_Z

I guess it would generate more primes pZ than Mersenne in a given interval, but requires knowledge of all primes to pN, the Nth prime. It may produce only primes, rather than Mersenne's hit-or-miss search. The pn here are supposed to follow 2, 3, 5, 7, 11, 13, 17...pN, but the formula might work somewhat with an incomplete sequence of primes.

Have I discovered anything new here? The equation is so simple and effective that it must have already been found.
  Reply With Quote
Old May13-09, 06:50 PM                  #2
ramsey2879

ramsey2879 is Offline:
Posts: 546
Blog Entries: 2
Re: A prime generator I discovered

Originally Posted by Loren Booda View Post
Somewhere between brute force and Mersenne derivation of primes is the formula I found,

LaTeX Code: \\prod_{n=1}^Np_n-1=p_Z

I guess it would generate more primes pZ than Mersenne in a given interval, but requires knowledge of all primes to pN, the Nth prime. It may produce only primes, rather than Mersenne's hit-or-miss search. The pn here are supposed to follow 2, 3, 5, 7, 11, 13, 17...pN, but the formula might work somewhat with an incomplete sequence of primes.

Have I discovered anything new here? The equation is so simple and effective that it must have already been found.
The above formula has been used to prove that there are an infinite number of primes and is well known. Unfortunately I believe the larger n is the less chance that the number is prime even though it is clear that all primes up through the Nth prime do not divide this number.
  Reply With Quote
Old May13-09, 06:51 PM                  #3
Borek
 
Borek's Avatar

Best Humor 2008

Borek is Offline:
Posts: 4,900
Recognitions:
PF Contributor PF Contributor
Homework Helper Homework Helper
Science Advisor Science Advisor
Re: A prime generator I discovered

2*3*5*7*11*17-1 = 107*367

(you are not the first one with this idea )
  Reply With Quote
Old May13-09, 09:19 PM                  #4
CRGreathouse

CRGreathouse is Offline:
Posts: 2,939
Recognitions:
Homework Helper Homework Helper
Science Advisor Science Advisor
Re: A prime generator I discovered

See A005265 and related sequences.
  Reply With Quote
image image
Reply
Thread Tools


Similar Threads for: A prime generator I discovered
Thread Thread Starter Forum Replies Last Post
Van de Graff Generator: Electrostatics, why do objects repel the generator jamba88 Advanced Physics 0 Apr21-09 01:45 PM
Flywheel Generator - Split from Propane Solar Collector/Generator Thread greatglory Mechanical Engineering 52 Dec2-08 06:21 AM
A formula of prime numbers for interval (q; (q+1)^2), where q is prime number. Victor Sorokine Number Theory 0 Jul21-05 03:37 PM
Efficiency: prime test vs prime generator synergy Number Theory 14 Oct20-04 12:33 PM
7-million digit prime number discovered Monique Number Theory 11 Jul5-04 11:03 AM

Powered by vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd. © 2009 Physics Forums
Sciam | physorgPhysorg.com Science News Partner
image
image   image