Primenos


Submit solution

Points: 10 (partial)
Time limit: 1.0s
Memory limit: 64M

Author:
Problem type
Allowed languages
Java

TASK

Write a program to display prime numbers till n (include n if n is a prime number)

Input Format:

This program requires an integer 'n' as input

Output Format:

This program prints all prime numbers from 2 to n

Sample Input

10

Sample Output: 2 3 5 7


Comments

There are no comments at the moment.