FRDB Archives

Freethought & Rationalism Archive

The archives are read only.


Go Back   FRDB Archives > Archives > IIDB ARCHIVE: 200X-2003, PD 2007 > IIDB Philosophical Forums (PRIOR TO JUN-2003)
Welcome, Peter Kirby.
You last visited: Today at 05:55 AM

 
 
Thread Tools Search this Thread
Old 08-08-2002, 01:38 PM   #1
Veteran Member
 
Join Date: Jan 2001
Location: Santa Fe, NM
Posts: 2,362
Post Determining primality is easy!

<a href="http://www.cse.iitk.ac.in/news/primality.html" target="_blank">http://www.cse.iitk.ac.in/news/primality.html</a>

Yay!!!

m.
Undercurrent is offline  
Old 08-08-2002, 03:08 PM   #2
Veteran Member
 
Join Date: Apr 2001
Location: arse-end of the world
Posts: 2,305
Post

Quote:
Originally posted by Michael:
<strong><a href="http://www.cse.iitk.ac.in/news/primality.html" target="_blank">http://www.cse.iitk.ac.in/news/primality.html</a></strong>
You mean I'm going to have to give up the Sieve of Eratosthenes? Bugger.
Friar Bellows is offline  
Old 08-08-2002, 05:18 PM   #3
Veteran Member
 
Join Date: Jan 2001
Location: Median strip of DC beltway
Posts: 1,888
Post

I was pretty sure that you could do this in linear time already...

[code]

if (candidate mod 2 = 0) return false;
for(int a=3; a LESSTHANEQUAL sqrt(candidate); a+=2)
if(candaidate mod a = 0) return false;

return true;
</pre>[/quote]

This is an O(N) algorithm on the majority of systems (with constant time division and sqrt).

Is this an algorithm for arbitrarily sized integers?

[edit- wouldn't post with the less than sign, said "cannot have parens inside an html tag". That's pretty dumb]

[ August 08, 2002: Message edited by: NialScorva ]</p>
NialScorva is offline  
Old 08-09-2002, 12:46 AM   #4
Contributor
 
Join Date: Jul 2000
Location: Lebanon, OR, USA
Posts: 16,829
Post

It's a modification of the Sieve of Eratosthenes, where one does not try to find the intermediate prime values.
lpetrich is offline  
Old 08-09-2002, 09:10 AM   #5
Veteran Member
 
Join Date: Jun 2000
Location: Denver, Colorado, USA
Posts: 4,834
Post

Impressive result. I imagine it will be in advanced mathematics textbooks for the rest of time. And, in stark contrast to the recent proof of Fermat's Last Theorem, described in the brevity customary of new advances in mathematics (a mere nine pages in all with the algorhythm itself and proof that it works set out in just a couple of pages).

I'm also pleased that this result has been widely distributed on the web to the entire scientific community before it could be classified. One of the inherent hazards of working in number theory is that great results are classified for national security reasons before they can be published.

It is also an interesting example of the fact that many great advances can come even when there is no patent protection for the idea. . . just fame.

The fact that there is a real possibility that slight modifications can increase the efficiency of the approach from solving problems not within a function of (log n)^12 minutes, as proven, but in a function of (log n)^3 minutes or so, is also notable.
ohwilleke is offline  
Old 08-09-2002, 09:39 AM   #6
Veteran Member
 
Join Date: Jan 2001
Location: Median strip of DC beltway
Posts: 1,888
Post

Ah, finally got to read the paper (had to download acroread, no open source reader I could find would handle the type 3 fonts in the paper )

Looks neat, one division and scales to arbitrarily sized integers.
NialScorva is offline  
Old 08-10-2002, 02:09 AM   #7
Veteran Member
 
Join Date: Apr 2001
Location: arse-end of the world
Posts: 2,305
Question

From a "pure math" perspective this is a great result, but from the "applied math" perspective, surely it's no big deal, because after all there are "non-exact" (I forget the right term for them) algorithms which are faster, and for which the errors can be made exceedingly (arbitrarily?) small. But I could be wrong.
Friar Bellows is offline  
Old 08-15-2002, 12:19 AM   #8
Veteran Member
 
Join Date: Sep 2001
Location: Los Angeles Area
Posts: 1,372
Post

Quote:
Originally posted by Friar Bellows:
<strong>From a "pure math" perspective this is a great result, but from the "applied math" perspective, surely it's no big deal, because after all there are "non-exact" (I forget the right term for them) algorithms which are faster, and for which the errors can be made exceedingly (arbitrarily?) small. But I could be wrong.</strong>
That is correct. There are 'probablistic' algorithms that can show whether a number is prime or not with a certain probability, and by applying these algorithms repeatedly, one can minimize the probability of being wrong. However, I'm fairly certain that the time cost of this approach will outstrip the cost of the newly discovered deterministic algorithm for very, very large numbers. This new algo has benefits for certain problem domains, it's not just another useless math theory.
fando is offline  
Old 08-15-2002, 11:58 AM   #9
Veteran
 
Join Date: Aug 2001
Location: Snyder,Texas,USA
Posts: 4,411
Cool

But all I wanted to know was if the integer comprising seventeen 1's in a row is prime. Well, that one and nineteen 1's, too.
Coragyps is offline  
Old 08-15-2002, 01:21 PM   #10
Veteran Member
 
Join Date: Jun 2000
Location: Denver, Colorado, USA
Posts: 4,834
Post

I think that the big consequence of this theorem, together with Fermat's Last and another of other big number theory developments lately, is that we may discover enough to really provide an overarching understanding of number theory, and not just a bunch of apparently fluky, unconnected results.
ohwilleke is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump


All times are GMT -8. The time now is 06:05 PM.

Top

This custom BB emulates vBulletin® Version 3.8.2
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.