Ensure that you are logged in and have the required permissions to access the test.
A server error has occurred. Please refresh the page or try after some time.
An error has occurred. Please refresh the page or try after some time.
5
Given a number 'N' generate all the primes smaller than or equal to 'N'.
Try it using Sieve of Eratosthenes.
2 30 80
2 3 5 7 11 13 17 19 23 29 2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79
Input: 30
Output: 2 3 5 7 11 13 17 19 23 29
A password reset link will be sent to the following email id
?