SHARE
TWEET

Untitled

a guest Jan 25th, 2020 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. n = int(input())
  2. i = 2
  3. a = []
  4. while i * i <= n:
  5.    while n % i == 0:
  6.        a.append(i)
  7.        n = n // i
  8.    i = i + 1
  9. if n > 1:
  10.    a.append(n)
  11. for i in range(len(a)):
  12.     print(a[i], end=" ")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top