prime numbers from 1 to 100
A number which can be only divisible by 1 and itself, Called prime number . It must be exactly 2 factors 1 and itself. Example: 5 is prime number (It…
A number which can be only divisible by 1 and itself, Called prime number . It must be exactly 2 factors 1 and itself. Example: 5 is prime number (It…
There are 2 best-optimised logic for the checking prime number. Here matter of optimised mean, minimising Iterations. let's start doing both scenario's. Iterate through all numbers from 2 to n/2…