Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
# Hello World program in Python
n=152
a=1
p=[]
while (a<n):
a+=1
if a==2 or a==3:
p.append(a)
for x in range(a):
if x<2:
x+=2
if (a%x==0):
flag=False
print (a,x,'frueas')
break
else:
flag=True
print (a,x,'talse')
if flag==True:
p.append(a)
print(a)
print (p)
Advertisements
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.
AcceptLearn more