Adds PRIME1 & LASTDIG2 and shorter code for LASTDIG1