RootCauseunvalidated

incorrectly checks bits of 'p' instead of 'p-1' — The code attempts to factor p-1 as 2^e*q where q is odd. Tension: With a crafted prime where consecutive bit positions are 0, the while loop never finds a set bit. Outcome: iterates indefinitely.

4e416b2b-5e08-4d4b-8a97-f31edb69d073

incorrectly checks bits of 'p' instead of 'p-1' — The code attempts to factor p-1 as 2^e*q where q is odd. Tension: With a crafted prime where consecutive bit positions are 0, the while loop never finds a set bit. Outcome: iterates indefinitely.