Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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 wandering the Monastery: (7)
As of 2017-02-28 17:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (407 votes). Check out past polls.