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