Completed prime()