Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^7: a close prime number

by dragonchild (Archbishop)
on Feb 13, 2005 at 20:13 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://430620]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-03-29 00:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found