mirror of
https://github.com/bendtherules/pytry.git
synced 2026-08-18 22:03:03 +00:00
21 lines
362 B
Python
21 lines
362 B
Python
import math as m
|
|
tot=0
|
|
def is_prime(x):
|
|
for count in range(2,int(m.sqrt(x))+1):
|
|
if x%count==0:
|
|
#print(count)
|
|
return False
|
|
else:
|
|
return True
|
|
def is_odd(x):
|
|
return not (x%2==0)
|
|
|
|
max=300
|
|
|
|
for count1 in range(1,max):
|
|
if is_odd(count1) and not is_prime(count1):
|
|
print(count1)
|
|
tot+=1
|
|
|
|
|
|
print(tot) |