LearnPy Hub
← Functions problems
Medium

is_prime()

Write is_prime(n). Read a line of integers and print those that are prime, separated by spaces. At least one number is prime.

Input

One line of integers.

Output

One line.

Sample 1

Input
1 2 3 4 5 6 7
Output
2 3 5 7

Sample 2

Input
10 15 21 23
Output
23
solution.py
Output appears here
is_prime() · Python practice problem · LearnPy Hub