$n=11;
$flag=0;
for($i=2;$i<=$n/2;$i++){
if($n%$i==0){
$flag=1;
break;
}
if($flag==0){
echo "Number is prime";
}else{
echo "Number is not prime";
Coderraj is the global online platform and circle for programmers to learn, communicate, share their knowledge and growth their careers.
Copyright ©2022 coderraj.com. All Rights Reserved.