Improved prime guessing