Redirecting to Pohlig–Hellman algorithm