Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re^2: a close prime number

by Roy Johnson (Monsignor)
on Feb 11, 2005 at 23:34 UTC ( #430348=note: print w/ replies, xml ) Need Help??

in reply to Re: a close prime number
in thread a close prime number

One other bug:

for (@primes) { last if $_ > $root; # If you have checked bigger primes, +you don't want to go through all of them! print("$_ divides $num\n"), return 0 if ($num % $_ == 0); }

Caution: Contents may have been coded under pressure.

Comment on Re^2: a close prime number
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (13)
As of 2015-11-30 14:14 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 (771 votes), past polls