check if a number is a positive integer