Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def almostPrime(i, f):
- if f > i:
- return []
- elif i % f == 0:
- return [f] + almostPrime(i, f +1)
- else:
- return almostPrime(i, f +1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement