mirror of
https://github.com/arthur-pbty/nsi.git
synced 2026-06-03 23:36:19 +02:00
12 lines
208 B
Python
12 lines
208 B
Python
nbr = int(input("Nombre ? "))
|
|
pre = True
|
|
|
|
for i in range(2,11):
|
|
if i != nbr:
|
|
if nbr % i == 0:
|
|
pre = False
|
|
|
|
if pre:
|
|
print("nombre premier !")
|
|
else:
|
|
print("nombre non premier !") |