Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php prime numbers

<?php
$number = 10;  
$count=0;  
for ( $i=1; $i <= $number; $i++)  
{  
if (($number % $i)==0)  
{  
$count++;  
}  
}  
if ($count < 3)  
{  
echo "$number is a prime number.";  
}
else
{
echo "$number is not a prime number."; 
}
?>
Comment

php check prime number

# This is The Code Check Prime number
Comment

PREVIOUS NEXT
Code Example
Php :: form validation with larvel api 
Php :: phpunit repeat 
Php :: how to check if PHP-FPM is running 
Php :: clear cache via route laravel 
Php :: convert object to array in php 
Php :: laravel orderby with relation 
Php :: php foreach mysql result 
Php :: print last sql query laravel 
Php :: check if url is https laravel 
Php :: laravel gigapay 
Php :: laravel migration with primary key 
Php :: check file size validation laravel 
Php :: how to run php file in xampp 
Php :: fill zero on php 
Php :: check if number is multiple of 3 in php 
Php :: php remove line if it contains string 
Php :: laravel run a specific migration 
Php :: php convert minutes to hours and minutes 
Php :: test curl php 
Php :: php utf8_decode 
Php :: laravel custom 404 blade 
Php :: php ziparchive compress folder 
Php :: request get query string laravel 
Php :: php change string to url friendly 
Php :: how set variable public in static method in laravel 
Php :: laravel route resources 
Php :: mysql_fetch_array php 
Php :: how to mask phone number in php 
Php :: count with left join in laravel 
Php :: how to know the path of php in linux 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =