PHP 

PRIME NUMBER

3
PRIME NUMBER
Program Language: PHP

Program Requirements: 1.PHP server(like EasyPHP)

2.Web Browser(Like Firefox)

Program Description:

php program for calculating prime number

File Name:prime.php

PHP Code:
<!--?php

$count
=0;

$number=2;

while(
$count<20)

{

$div_count=0;

for(
$i=1;$i<=$number;$i++)

{

if((
$number $i)==0)

{

$div_count++;

}

}

if(
$div_count<3)

{

echo 
$number.",";

$count=$count+1;

}

$number=$number+1;

}
?>


Save As prime.php...
Heart
Make a Great History
don't do double posting bro..

follow v+ rules..
V SIVA, proud to be a member of  (V+)
No bro this is another program.
Heart
Make a Great History