divisors of a number

This program calculates the number of the divisors of the given number, and if it's 2 then it notes it's a prime number.