Thread
:
PHP Prime Number Generator
View Single Post
07-02-2012, 04:33 PM
PM User
|
#
8
tony_day
New to the CF scene
Join Date: Jul 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
<?php
$no=$_POST['num'];
for($i=2;$i<=$no-$i;$i+1){
if($no%$i==0){
echo "Not ";
break;
}
}
echo "Prime";
?>
tony_day
View Public Profile
Find More Posts by tony_day