Function to generate big primes