Math teacher says 1 is not prime, FYI.  Also, whoa, fun challenge!