Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: a close prime number

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

Help for this page

Select Code to Download


  1. or download this
    for (10,15,20831323,99,100) {
      print "$_: ", nearPrime($_), "\n";
    ...
    }
    
    ...
    
  2. or download this
    sub nearPrime {
        my $num = shift;
    ...
            $sign = -$sign;
        }
    }
    
  3. or download this
    BEGIN {
        my @primes = (2, 3); my $max = 3;
    ...
            return 1;
        }
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (10)
As of 2014-04-19 09:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (478 votes), past polls