Hello There, Guest! RegisterLogin with Facebook
Login with Facebook

New Anna University Nov / Dec 2016 Examination Important Questions
New Anna University (UG / PG) Nov/Dec 2016 and Jan 2017 Theory , Practical Exam Timetable
>>> Anna University Sixth Semester Question Bank Collection (R2013) ECE,MECH,CSE,IT,EEE,CIVIL,EIE
>>> Anna University November/December 2015 Examination Question Papers
>>> Anna University Study Materials for all Departments
>>> Anna University Question Papers : April May June 2015 Question Papers | Nov Dec 2014 and Jan 2015 Question Papers

Register or Login to Submit Study Materials , Shoutbox and also to access Many Features !!

Vidyarthiplus Shop :: Handwritten Premium Lecture Notes
Share your Study Materials with us
Share your Study Materials with us : Click Here

PHP PRIME NUMBER
#1


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


Reply
#2

don't do double posting bro..

follow v+ rules..

V SIVA, proud to be a member of  (V+)


Reply
#3


No bro this is another program.

Heart
Make a Great History


Reply

Subscribe


Recommend on Google