Fixing number of digits in generate random prime