Finding Largest 4 digit prime number