I see. But then, how should we determine quadratic residuosity in Sage? (for tractible inputs)
> I don't think this is evidence of a bug, because t2 is not prime. It is > only when n is is an odd prime that kronecker(a,n) tells you whether a is a > quadratic residue. See the wikipedia article on Kronecker symbol > <https://en.wikipedia.org/wiki/Kronecker_symbol>. > > On Wednesday, May 6, 2020 at 1:37:12 PM UTC-6, Taylor Huang wrote: >> >> As the attachment shown. kronecker(-1,t2) returns 1, but >> mod(-1,t2).sqrt() says the square root cannot be done. >> It seems to be a bug. >> > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/9c39cb66-b1fb-4d9c-b175-2b1c72757482%40googlegroups.com.