Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^7: a close prime number

by dragonchild (Archbishop)
on Feb 13, 2005 at 20:13 UTC ( #430620=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Brute-force algorithm:
    
    ...
            return $m if is_power( $--m, 2 );
        }
    }
    
  2. or download this
    Predictive algorithm:
    
    ...
    
        abs( $n - $l ) > abs( $n - $v ) ? $v : $l;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://430620]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2016-12-09 22:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (158 votes). Check out past polls.