Modularise your program using function. - Function example 1, a function to check prime number