![find the list of prime numbers to print out find the list of prime numbers to print out](https://images.twinkl.co.uk/tw1n/image/private/t_630/image_repo/1b/66/t2-m-254522-identifying-prime-numbers-to-100-activity-sheet-_ver_1.jpg)
This not only the one method of logic to create Primer number series. Now look at another PHP script for generating a list of prime numbers below 100. If its value greater than two means, that number can be divisible by some other number instead of 1 and that number itself.If its value less than three means, its a primer number. number by any other number between one and that number, we will get a remainder. After all the division operations with other numbers we will check the total counter for the remainder. Here is a sample PHP script program to create a list of prime numbers. And we will increment a counter if remainder found zero.
![find the list of prime numbers to print out find the list of prime numbers to print out](https://pythonguides.com/wp-content/uploads/2021/03/Python-program-to-find-the-sum-of-n-prime-numbers-1.png)
![find the list of prime numbers to print out find the list of prime numbers to print out](https://i.ytimg.com/vi/gxJsrZzgGVA/maxresdefault.jpg)
And then we will find the remainder for each division of other numbers with the stored number using a loop. Logic of this program : We need first store the current number to a variable. In this example we are going to print first 20 prime numbers. Here is a sample PHP script program to create a list of prime numbers According to the prime number definition number one ( 1 ) wont consider as a primer number. So if we try to divide that number by any other number between one and that number, we will get a remainder. That number cannot be divisible by any other number. A prime number is defined as a number which can be only divisible by 1 and that number itself.