Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: is it prime?

by tobyink (Canon)
on May 06, 2012 at 06:19 UTC ( [id://969117]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub isPrime($) {
         $num = shift;
    ...
         if ($c == 1){return 1;}
         return 0;
    }
    
  2. or download this
    use 5.010;
    use strict;
    ...
            say;
        }
    }
    
  3. or download this
    use Carp qw/croak/;
    sub isPrime (_)
    ...
        }
        return 1;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (1)
As of 2024-04-25 01:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found