Skip to content
Snippets Groups Projects
Select Git revision
  • c921120bb91e752a1e2d981b9e17a8047671ae8b
  • devel default
  • global-attachments
  • master protected
4 results

owl.service.example

Blame
  • prvocisla-vypis.py 224 B
    #!/usr/bin/env python3
    # Vypíše všechna prvočísla od 1 do n
    
    n = int(input())
    
    x = 2
    while x <= n:
        d = 2
        while d < x:
            if x%d == 0:
                break
            d += 1
        else:
            print(x)
    
        x += 1