Advertisement
Guest User

Untitled

a guest
Oct 30th, 2014
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. def almostPrime(i, f):
  2. if f > i:
  3. return []
  4. elif i % f == 0:
  5. return [f] + almostPrime(i, f +1)
  6. else:
  7. return almostPrime(i, f +1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement