In the event of technical difficulties with Szkopuł, please contact us via email at szkopul@fri.edu.pl.
If you are familiar with IRC chat, the support team is also reachable on PIRC network (irc.pirc.pl
) in #szkopul
channel. If you are not, just use email.
Please do not ask us things like "how to solve task XYZ?".
Please remember that the support team has to sleep sometimes or go to work in real life.
In this problem we are interested only in prime prime powers, i.e., numbers
of the form , where
and
are prime numbers.
For a given number
, we want to find the
-th smallest
prime prime power greater than
.
The first and only line of the input contains two integers and
(
,
).
The first and only line of output should contain one integer , such that
is the
-th smallest prime prime power greater than
.
For the input data:
22 1
the correct result is:
25
whereas for the input data:
22 2
the correct result is:
27
Task author: Jakub Radoszewski.