This checks whether a given number is a prime or semi-prime (product of two primes).
We shall add more programs performing interesting functions later on...