def prem(n): c=0 for i in range(1,n+1): r=n%i if r==0: c=c+1 return(c==2)