#!ruby -n040 puts /[^- \d]/?"Wait, that's not a number...":(n=0 i=j=$_.to_i k=2 j%k<1?(n+=i/k j/=k):k+=1while j*j>1 n)