factorial and prime number