Advertisement
Guest User

Untitled

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