Change == to != in method prime?