+ 1
Please help me write a program that out puts the multiplication of prime numbers when a number is in put
4 Answers
+ 1
The best way is try it by yourself.
+ 1
Ok thanks
+ 1
n=int(input());j=1
while n!=0:
def abc(k):
c=0
for i in range(2,k):
if(k%i==0):
c=c+1
if(c==0):
return k
else:
return 1
r=n%10
j=j*abc(r)
n=n//10
print(j)
#It works
+ 1
Thanks