Prime Numbers

Question

Write a program that prints out all prime numbers upto n for input n.

Example Output

n=20
2 3 5 7 11 13 17 19