A program checks if a number is prime or not by following special instruction through mathematics and coding principles