#!/usr/bin/env python3 # Vypíše všechna prvočísla od 1 do n n = int(input()) x = 2 while x <= n: d = 2 mam_delitele = False while d < x: if x%d == 0: mam_delitele = True break d += 1 if not mam_delitele: print(x) x += 1