study how to distinguish prime or not