first submission

predefined func
Fct() = to find factorial of given number
isPrime() = to check integer is prime or not