Fast Enterprises Interview Question

Write an algorithm which will display prime numbers from 1 to n

Interview Answer

Anonymous

Mar 23, 2019

If number is not divisible by any number from 2 to sqrt(n), then it is a prime number