![]() |
|
|
#1 |
|
Mar 2003
8110 Posts |
I have just downloaded the polynomial formula
to produce all primes. But I cannot compel it to work. What's the matter? f(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z)= (k + 2)*(1 - (w*z + h + j - q)^2 - (2*n + p + q + z - e)^2 - (a^2*y^2 - y^2 + 1 - x^2)^2 - ((e^4 + 2*e^3)*(a + 1)^2 - o^2)^2 - (16*(k + 1)^3*(k + 2)*(n + 1)^2 + 1 - f^2)^2 - (((a + u^4 - u^2*a)^2 - 1)*(n + 4*d*y)^2 + 1 - (x + c*u)^2)^2 - (a*i + k + 1 - l - i)^2 - ((g*k + 2*g + k + 1)*(h + j) + h - z)^2 - (16*r^2*y^4*(a^2 - 1) + 1 - u^2)^2 - (p - m + l*(a - n - 1) + b*(2*a*n + 2*a - n^2 - 2*n - 2))^2 - (z - p*m + p*l*a - p^2*l + t*(2*a*p - p^2 - 1))^2 - (q - x + y*(a - p - 1) + s*(2*a*p + 2*a - p^2 - 2*p - 2))^2 - (a^2*l^2 - l^2 + 1 - m^2)^2 - (n + l + v - y)^2) |
|
|
|
|
|
#2 |
|
Aug 2002
3×83 Posts |
Maybe you should talk to the person you got this "formula" from?
I'd note that trying to produce all the primes without testing individual numbers is something people have been trying to do for centuries, without success. I hope you forgive us for being slightly pessimistic. |
|
|
|
|
|
#3 |
|
"Mike"
Aug 2002
100000000111112 Posts |
I sure wish this forum had a formula editor...
![]() Maybe I'll toss that into Maple 7 and see what we get... http://www.teamprimerib.com/gif/equation.gif Hmm... I told Maple to "solve" it and I got a really long weird-looking answer... |
|
|
|
|
|
#4 |
|
"Richard B. Woods"
Aug 2002
Wisconsin USA
22×3×641 Posts |
.
. Spacing down a few lines to get out from under that last blurb ... there, that's better. |
|
|
|
|
|
#5 |
|
Dec 2002
Frederick County, MD
2×5×37 Posts |
Gee, I wish I had maple :( , that would be cool.
A polynomial function of 26 variables, which by amazing coincidence, is also the number of letters in the English language! Very convenient, we don't need to go to Greek letters for the function! I guess this is believable, since now we have physicists becoming experts in number theory because they have studied a limited sequence of primes :? . http://www.nature.com/nsu/030317/030317-13.html |
|
|
|
|
|
#6 | ||||||
|
"Richard B. Woods"
Aug 2002
Wisconsin USA
1E0C16 Posts |
Quote:
f(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z)= Quote:
It turns out that whenever the formula produces a positive value, that value is a prime. Warwick Harvey wrote, Quote:
Quote:
Quote:
Quote:
|
||||||
|
|
|
|
|
#7 | |
|
Dec 2002
Frederick County, MD
2·5·37 Posts |
Quote:
In the first equation, the fifth term is -((e^4 + 2*e^3)*(a + 1)^2 - o^2)^2 The sixth term in the second equation is the one that should be equivalent as far as I can tell, but that term is -[e³(e+2)(a+1)²+1-o²]² Of course, there is a e³ factored out in the second term, but that's not the problem. The problem is the +1 in the second term that is not in the first term in any form. But other than that, the equations are equivalent. The +1 is probably from one of the equations not being copied properly. Anyway, thanks for the clarification of the function Cheesehead, and sorry if I messed up your blurb spacing ;) . |
|
|
|
|
|
|
#8 |
|
Sep 2002
6010 Posts |
Is there a name for this function? Sorry if I missed it in a previous post.
And are there any internet sites where I can find it? asdf |
|
|
|
|
|
#9 |
|
Mar 2003
8110 Posts |
I see !!!
That's not a formula at all !!! That's a great joke and kinda sieve. Almost time it's negative, but if not, it's equal to k+2 and other factor is 1. As for me, I've tried a loop from 1 to 1000000 with all vars being random from 1 till 1000000, but this stupid polynomial was always negative ! :D |
|
|
|
|
|
#10 |
|
∂2ω=0
Sep 2002
República de California
265678 Posts |
Hans Riesel's book, "Prime Numbers and Computer Methods for Factorization"
has a nice discussion of these kinds of "prime-producing" polynomials. One of the earliest of these is Euler's famous x^2-x+41, which produces primes for x=0,1,2,...,40. This polynomial clearly cannot produce a prime for x=41, since in that case the -x+41 part is zero, leaving a perfect square. There is a more general proven theorem along these lines which applies to (non-constant) polynomials in arbitrarily many variables, namely that NO POLYNOMIAL CAN PRODUCE ONLY PRIMES. However, it has also been proven that there do exist (non-polynomial) formulae which DO produce only primes. For example, Mills showed in 1947 that there exists a real number theta in (1,2), such that for every positive integer n, the number floor(theta^3^n) is prime. (Cf. the book by Crandall and Pomerance for more details and references). However, none of the known formulae of this type is practical for actually finding primes, in particular record-size primes. |
|
|
|
|
|
#11 | |
|
Mar 2003
34 Posts |
Quote:
|
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| compendium of formulas related with primes ? | skan | Miscellaneous Math | 6 | 2012-12-14 12:56 |
| Problems for displaying math formulas | alpertron | Forum Feedback | 4 | 2011-05-26 20:37 |
| Assorted formulas for exponents of Mersenne primes | Lee Yiyuan | Miscellaneous Math | 60 | 2011-03-01 12:22 |
| recurrent formulas to obtain primes | Unregistered | Information & Answers | 2 | 2011-01-14 17:19 |
| Arithmetic and Polynomial Progression of Primes? | drake2 | Math | 13 | 2006-10-10 00:43 |