Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (12)
As of 2014-10-22 16:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (119 votes), past polls