|
|
|
|
|
by goldenkey
3668 days ago
|
|
I'm just going to link to this post: http://math.stackexchange.com/questions/311610/modified-eule... Primes have a pattern, just obvious by their definition. They are self-similar. That doesn't mean there will be some magic non-linear formula for generating primes or detecting primality. But it does mean there are properties that might not be so obvious. |
|
That is correct, but there are magic non-linear formulas for generating only negative numbers and primes. See https://en.m.wikipedia.org/wiki/Formula_for_primes#Formula_b... or http://mathworld.wolfram.com/Prime-GeneratingPolynomial.html
There also is a very simple function that only produces primes, but not all of them: https://en.m.wikipedia.org/wiki/Formula_for_primes#Mills.27_..., https://en.m.wikipedia.org/wiki/Mills%27_constant