The sieve of Eratosthenes finds every prime that is not greater than N. The procedure is this.
Given N and K, find the K-th number that is crossed out.
The input holds several test cases. Each line has two integers N and K separated by a space (2≤K<N≤1000).
Process every line until the end of the input.
For each test case, print the K-th number that is crossed out on its own line.