Search
 
SCRIPT & CODE EXAMPLE
 

PHP

echo first 100 prime numbers php

<?php
for($i=1;$i<=100;$i++){
for($j = 1; $j<=$i; $j++){
 $temp = $i%$j;
 if($temp == 1){
 echo "is a prime number   ".$j."<br>";
 }
}
}
?>
Comment

PREVIOUS NEXT
Code Example
Php :: php get extension from string 
Php :: get domain from subdomain php 
Php :: if null blade laravel 
Php :: laravel db transaction 
Php :: laravel database connection check 
Php :: symfony get current datetime 
Php :: php get myme type of image 
Php :: whereyear laravel 
Php :: php remove all but numbers 
Php :: PHP strncmp — Binary safe string comparison of the first n characters 
Php :: doument root phpp 
Php :: email validation in laravel 
Php :: seed date laravel 
Php :: unset _post 
Php :: clear file contents php 
Php :: js check if div is empty 
Php :: laravel group by created_at date only 
Php :: redirect php 
Php :: how can we use two php version in mac os 
Php :: how to switch from php7.4 to php7.3 mac 
Php :: php auto scoll page with output 
Php :: php dias entre dos fechas 
Php :: extract all arrays from sql response in php 
Php :: combine array except common ones php 
Php :: only alphanumeric characters are allowed regex in php 
Php :: php get content phpinfo without show 
Php :: php string starts with 
Php :: difference between two timestamps php 
Php :: get parameter in php 
Php :: php get random element from array 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =