enhance prime check