in reply to
Re: Re: Prime Number Finder
in thread Prime Number Finder
nope! they all look prime to me!
i like it, i'm gonna use it to explain programming loops to a mathmatician friend. i took the liberty to re-arrange a touch...
my $number = shift;
my $sqrt = sqrt $number;
my $d = 2;
return 0 if ( $number % $d == 0 );
return 1 if ( $d > $sqrt );
shiny regexes and rules offered by Perl 6
other CPAN module
by looking at it on my monitor
I print it and I read it in spare time
first I convert it into $FORMAT, then I parse it
I hire someone to do it
using my custom module
I write a brand new language to do the task
on the server where I play as human, XML is forbidden
what is XML?
I speak XML natively
I write a new grammar for Perl 6
some other way
Results (208 votes),