changed coinFlip and added primtTest