check a number if prime or not with prog