Created
June 13, 2016 05:06
-
-
Save craftbyte/d5afeb0ac2374add1eef600302c338ca to your computer and use it in GitHub Desktop.
prastevilo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def jePrastevilo(n): | |
for x in range(2,n): | |
if n%x==0: | |
return False | |
return True | |
var x = input('Vnesi stevilo:') | |
if jePrastevilo(x): | |
print(x, 'je prastevilo') | |
else: | |
print(x, 'ni prastevilo') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment