Problem B
Pollard's p-1 Algorithm
Languages
en
is
Use Pollard’s
Input
First line consist of an integer
Output
Output any non-trivial factor of
Sample Input 1 | Sample Output 1 |
---|---|
144948923 10 |
7 |
Sample Input 2 | Sample Output 2 |
---|---|
675103487 50000 |
-1 |