prime number

This commit is contained in:
Mert Gör 🇹🇷 2023-05-21 10:15:07 +03:00
parent 6f601effc5
commit caccd27cd3
No known key found for this signature in database
GPG Key ID: 2100A876D55B39B9

11
prime.number.from.int.py Normal file
View File

@ -0,0 +1,11 @@
n = int(input('Bir sayı giriniz:'))
for i in range(2, n):
if n % i == 0:
print('Asal değil')
break
else:
if n < 2:
print('Gecersiz sayı!')
else:
print('Asal')