代码拉取完成,页面将自动刷新
# Python program to find sum of given
# series.
def productPrimeFactors(n):
product = 1
for i in range(2, n+1):
if (n % i == 0):
isPrime = 1
for j in range(2, int(i/2 + 1)):
if (i % j == 0):
isPrime = 0
break
# condition if \'i\' is Prime number
# as well as factor of num
if (isPrime):
product = product * i
return product
# main()
n = 44
print (productPrimeFactors(n))
# Contributed by _omg
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。