Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re^4: ulam's spiral too slow

by smahesh (Pilgrim)
on Apr 17, 2007 at 03:30 UTC ( #610443=note: print w/ replies, xml ) Need Help??

in reply to Re^3: ulam's spiral too slow
in thread ulam's spiral too slow

Excellent. Based on your clarification, one can indeed use the divisibility check on previous computed primes to determine if current $number is prime.

You can learn non-Perl stuff on perlmonks too!! :-)

Thanks, Mahesh

Comment on Re^4: ulam's spiral too slow

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://610443]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2015-12-01 00:22 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (788 votes), past polls