Given n, prime p, and target r mod p, find the faulty factorial (one factor reduced below its index) with remainder r, printing the smallest such (index, value).
Hard8Number theoryMathImplementationBinary searchNo attempts yetTime limit3sMemory limit512 MB