inefficient prime checker for daniel | ScratchStats