return the position of the prime number up to 1 million