Factoring Challenge
CodeChefOpen on judge ↗
The goal is to factor a given 127/128-bit integer N of the form N = P*Q, where P and Q are two 64 bit primes. It is well-known that factorization is a hard problem, and hence you are provided with partial information about the bit-pattern of the primes P and Q. In particular, you are given about 50% of the bits of both P and Q, at random. The goal is to factor N by reconstructing the missing bits
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start