fork download
  1. product = 2
  2.  
  3. for i in range(2,11):
  4. temp=i
  5. for j in range(2,i+1):
  6. while temp % j == 0 and temp != 1 :
  7. temp=temp/j
  8. temp_product = product
  9. if temp_product % j != 0:
  10. product = product * j
  11. temp_product = temp_product / j
  12. print(product)
Success #stdin #stdout 0.02s 6816KB
stdin
Standard input is empty
stdout
210