num=int(input("Enter a number till which you want to print prime numbers : "))
for x in range(1,num) :
if x>1 :
for y in range(2,x) :
if (x%y) ==0 :
break
else:
print(x)
fabtab={} def fabonacci(n): fabtab[0]=0 fabtab[1]=1 for i in range(2,n+1): fabtab[i]=fabtab[i-1]+fabtab[i-2] ...
No comments:
Post a Comment