Problem B
Pollard's p-1 Algorithm
Languages
en
is
Notið
Input
Fyrsta línan inniheldur heiltölu
Output
Skrifið eina línu með tölu sem gengur upp í
Sample Input 1 | Sample Output 1 |
---|---|
144948923 10 |
7 |
Sample Input 2 | Sample Output 2 |
---|---|
675103487 50000 |
-1 |