def prime(num):
i=2
while i<num:
prime=True
for a in range(2,i):
if i%a ==0:
prime=False
break
if prime==True:
print(i,end=" ")
i=i+1
prime(21)
This blog has content related to python programing language and Automation with python and hacker rank solutions , leet code solution
Comments
Post a Comment