Search
 
SCRIPT & CODE EXAMPLE
 

PHP

Code for finding Prime Numbers

<?php
              
              $no = 2;
              $total_display = 0;
              while ($total_display < 100 ) {
                $divisible_count = 0;
                for($i = 1; $i <=$no; $i++) {
                    if($no % $i == 0) {
                      $divisible_count += 1;
                    }
                }
                if($divisible_count < 3) {
                  echo $no . " ";
                  $total_display += 1;
                }
                $no += 1;
              }
?>
Comment

PREVIOUS NEXT
Code Example
Php :: wordpress add action 
Php :: pagination in api laravel 
Php :: php data types 
Php :: php numeric array 
Php :: php integer variable 
Php :: blocked token vs expired token 
Php :: image laravel 
Php :: php increment variable by 1 
Php :: create trait in laravel 8 
Php :: red rose 
Php :: laravel Call to a member function validate() on array 
Php :: Laravel eger load 
Php :: laravele primrary key 
Php :: /([a-z-0-9-]*) php 
Php :: Deprecated: Implicit conversion from float 
Php :: laravel gigapay delete payout 
Php :: Add a watermark to a new PDF document 
Php :: laravel event on attribute chang 
Php :: layer order matplotlib 
Php :: mysqli_query() expects parameter 1 to be mysqli 
Php :: Laravel FileManager Display Blank pop up page 
Php :: update query not working no errors found php mysql 
Php :: php ffi get load average 
Php :: wordpress remove current post in sidebar php 
Php :: php executor 
Php :: How can apply_filters be used to create a filter hook in wordpress 
Php :: LongestWord 
Php :: share with all blade in laravel 
Php :: difference between guard and fillable laravel 
Php :: protocals supported by php 
ADD CONTENT
Topic
Content
Source link
Name
2+9 =