Write a program to find the sum of factorial of all non prime numbers between M and N. for example, if there are 1, 4, 6 and 8 non prime numbers between 1 and 8, then 1! + 4! + 6! + 8! = 41065

Write a program to find the sum of factorial of all non prime numbers between M and N. for example, if there are 1, 4, 6 and 8 non prime numbers between 1 and 8, then 1! + 4! + 6! + 8! = 41065

Note that the number should not be too large
int IsPrime(int n)
{
int i;
if (n == 1)
{
return 0;
}
for (i = 2; i < n; i++)
{
if (n % i == 0)
{
return 0;
}
}
return 1;
}
int JieCheng(int n)
{
int i,s = 1;
for (i = 1; i