insidcode
ProblemsDuelLeaderboardStats
Sign In
  1. Home
  2. Problems
  3. Prime Numbers Between 1 and 100

Prime Numbers Between 1 and 100

Difficulty: Medium

Phase: 2 · Looping and Patterns

XP Reward: 20 XP

Topics: Looping and Patterns, Medium

Supported Languages: Python, JavaScript, C, C++, Java

Problem Description

Print all prime numbers between 1 and 100 inclusive, separated by space. Input Format: Read input from standard input (stdin). Output Format: Print the result to standard output (stdout).

Constraints

  • -10^9 <= N <= 10^9

Examples

Example 1

Input:

Output: 2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97

Explanation: Sample execution for input (no input)