math/big: infinite loop in Int.ModSqrt for p = 1 #51747
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
When passing p=1 in ModSqrt function, the code goes in infinite loop:
go/src/math/big/int.go
Line 940 in 3463852
The Jacobi symbol will gives one for ever.
For example: https://go.dev/play/p/37ExZ6Y-Hdp
The text was updated successfully, but these errors were encountered: