A lucky number is a number of a sequence generated by a sieve algorithm: if a number in the positive integers series survives to the sieve filtering algorithm, it's lucky and survives, otherwise it disappears from the sequence.
See the example below for a given size = 25 and nth = 5.
Step 1: Generate a list from 1 to size.
Step 2: First sieve filter is 2: every second number from the start has to be eliminated.
Step 3: Sieve filter is now 3: every third number from the start has to be eliminated.
Step 4: Sieve filter is now 7: every seventh number from the start has to be eliminated.
Step 5: Sieve filter is now 9: every ninth number has to be eliminated, but our list now contains only 8 numbers and so the algorithm ends. The nth number of the sequence is 13.
In the animation below, you can see the progressive sieving process for a list of 120 numbers: purple filling is for eliminated numbers, red is for lucky ones.

Given a size being the dimension of the starting list, write a function that returns the nth number of the resulting sequence after the sieving process.
get_lucky_number(25, 5) ➞ 13
# Same set and procedure as in example in above instructions.
get_lucky_number(3, 2) ➞ 3
# Original set = 1, 2, 3
# After first step = 1, 3
# No more steps possibles (filter is for every third element, length of set is 2)
# The second (nth) element is 3
get_lucky_number(120, 13) ➞ 49
# Same set as in animated gif in above instructions.
size and nth are valid parameters to return a lucky number, there are no exceptions to handle.