+ 1

Please help me write a program that out puts the multiplication of prime numbers when a number is in put

21st Sep 2019, 6:23 AM
Kalenda Racheal
Kalenda Racheal - avatar
4 Respostas
+ 1
The best way is try it by yourself.
21st Sep 2019, 3:47 PM
Deshani Malawana.
Deshani Malawana. - avatar
+ 1
Ok thanks
21st Sep 2019, 8:15 PM
Kalenda Racheal
Kalenda Racheal - avatar
+ 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
22nd Sep 2019, 3:50 AM
Krid Indu
Krid Indu - avatar
+ 1
Thanks
22nd Sep 2019, 6:04 AM
Kalenda Racheal
Kalenda Racheal - avatar