English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have an algabraic formula which (I believe) generates only prime numbers. Is there a method to test this?
(it doesn't generate EVERY prime, but I believe if I enter any number, I get a prime back)

Along the same lines, is there a list anywhere of formulas for generating primes, so I could judge whether it's unique or not?

2007-03-10 02:07:47 · 3 answers · asked by noonehomebutlightsareon 2 in Science & Mathematics Mathematics

3 answers

It has been rigorously proved that there can be no such formula as the one which you claim to have.

There are formulas which generate either a positive prime value or a negative value, but you cannot control which.

The page below introduces the topic. It is part of the best mathematical resource on the whole world-wide web.

2007-03-10 02:18:45 · answer #1 · answered by Anonymous · 0 0

There will never be a formula for generating primes as there is, and has been proven, to be infinitely many primes!

The only way to test if it generates prime number is to plug is numbers until you find a counterexample ie your formula not generating a prime number.

But seeing that you can't have a formula to produce each prime number, there will be numbers/a number that will generate a non prime number in formula.

2007-03-10 02:25:10 · answer #2 · answered by Oz 4 · 0 1

Here is an interesting site you should look at:
http://secamlocal.ex.ac.uk/people/staff/mrwatkin/zeta/ss-a.htm

About 35 years ago, I developed formulas to generate prime numbers (generators of rings), but they required a huge number of calculations and were not practical.

2007-03-10 04:23:53 · answer #3 · answered by williamh772 5 · 0 0

fedest.com, questions and answers