Solution of problem 6 : 10001st prime