Zonaunderground.com is my Latinamerican underground music site, check it out!</font#! perl use strict; my @list = 1..100; foreach $a (@list){ my@total=(); foreach $b(@list){ if ((int($a/$b)==($a/$b))){ push @total, $b; } } print "$a is prime\n" if ($#total == 1) ; }
In reply to Re: Prime Number Finder
by NAstyed
in thread Prime Number Finder
by munchie
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |