Primes in P
Did anyone implemente algoritem for finding prime numbers in polynomial-time as describe in "Primes in P" by Manindra Agrawal, Neeraj Kayal and Nitin Saxena. Any code would be welcome. Or at least translation of line 12 to some programming language. Thanks.
You should never let your fears become the boundaries of your dreams.
You should never let your fears become the boundaries of your dreams.
For line 12, the authors suggest "repeated-squaring and Fast-Fourier Multiplication". I have little knowledge of the latter, but I''m sure google will tell you what you need to know 
Can anyone clarify what the comma is for in (mod xr-1,n)? I''ve never seen a comma used there before.

Can anyone clarify what the comma is for in (mod xr-1,n)? I''ve never seen a comma used there before.
quote:
a = b(mod xr-1,n)?
Edit: Sorry, it means that a is congruent to b in "the ring Zn / (xr -1 )".
afaik this is just the same as a = b mod lcm(xr - 1, n). (lcm is the least common multiple)
And I take back my skepticism after reading some commentaries on the paper.
[edited by - sQuid on September 29, 2002 8:25:24 PM]
September 29, 2002 07:24 PM
My advanced algorithms course looked at the paper for a few days during the summer(right after it was published), and it indeed does work. But the thing to remember is that in P in this case means x^12, and there are better algorithms out there already to find primes. This could have some interesting applications later on, but right now primes in P is a novelty, and not of any "real" use.
~Mike
~Mike
It is impossible to implement this algorithm without
knowing the (currenly unknown)constant c.
This paper only proves
the existence of a prime number algorithm that runs in P,
but it is not really implementable yet.
Without a proof of what the constant is
(or at least a theoretical limit of its size),
it is possible that you will get some wrong answers
from the algorithm if you tried to implement it in its
current form. You would at least have to make a table of
numbers for which you get wrong answers from the algorithm,
and check the input against that list.
If the input number is in the list,
use the number''s primality that is stored in the
associative list, otherwise run the algorithm as usual.
Steven Borkman
Home Page: http://www.borkman.mygamesite.net
Video Game Page: http://www.dev.mygamesite.net
knowing the (currenly unknown)constant c.
This paper only proves
the existence of a prime number algorithm that runs in P,
but it is not really implementable yet.
Without a proof of what the constant is
(or at least a theoretical limit of its size),
it is possible that you will get some wrong answers
from the algorithm if you tried to implement it in its
current form. You would at least have to make a table of
numbers for which you get wrong answers from the algorithm,
and check the input against that list.
If the input number is in the list,
use the number''s primality that is stored in the
associative list, otherwise run the algorithm as usual.
Steven Borkman
Home Page: http://www.borkman.mygamesite.net
Video Game Page: http://www.dev.mygamesite.net
Steven BorkmanHome Page: http://www.borkman.mygamesite.net:8080Projects Site: http://www.dev.mygamesite.net:8080
quote:
Edit: Sorry, it means that a is congruent to b in "the ring Zn / (xr -1 )".
afaik this is just the same as a = b mod lcm(xr - 1, n). (lcm is the least common multiple)
And I take back my skepticism after reading some commentaries on the paper.
[edited by - sQuid on September 29, 2002 8:25:24 PM]
Are you sure that's right?
I think it might mean a = b (mod xr -1) (mod n)
In other words, do one mod and then the other in sequence.
Steven Borkman
Home Page: http://www.borkman.mygamesite.net
Video Game Page: http://www.dev.mygamesite.net
[edited by - borkman on October 4, 2002 3:27:52 PM]
Steven BorkmanHome Page: http://www.borkman.mygamesite.net:8080Projects Site: http://www.dev.mygamesite.net:8080
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement