I want to calculate the factorial of a number. It must not calculate factorial of a number which is prime.

Please help!