A sequence of N positive integers (10 < N < 100 000), each of them less than or equal 10000, and a p