THE EXERCISE OF THE GUYS GUYS HAS BEEN MOVED TO THE MENU "EXERCISE OF Teacher"

Smaller prime numbers k

Threads: Enter an integer k, print out a list of prime numbers less than k.
Input: An integer k.
Output: A line of smaller prime numbers k, each number separated by spaces. Without any prime number less than k, then print out “NOT FOUND”.
For example:

input:
5
output:
2 3

You are not logged in? Log in to Submit Now!

2 Comments

Add a Comment