#
DIFF.BLOG
New
Following
Discover
Jobs
More
Top Writers
Suggest a blog
Upvotes plugin
Report bug
Contact
About
Sign up
The home for great developer writing.
We surface the best developer writing from thousands of independent blogs, updated daily.
Join Diff.blog
TOPICS
Finding a non-square mod p
1
·
John Cook
·
Feb. 14, 2026, 10:09 p.m.
Computing
Math
Number theory
mathematics
algorithms
Number theory
Prime numbers
Summary
This blog post discusses the algorithm by Stan Wagon for expressing an odd prime p as a sum of two squares and the prerequisite of finding a non-square mod p, which is a number c that is not congruent to the square of any integer mod p.
Read full post on www.johndcook.com →
MORE POSTS LIKE THIS
Finding a square root of -1 mod p
John Cook ·
Feb 14, 2026
Math
Number theory
Gilbreath’s conjecture: a Cramér random model and a deterministic analysis
Terence Tao ·
Jul 11, 2026
math.CO
math.NT
Would Erdos have been happy with the resolution of the Erdos Unit Distance Problem? How to find out?
Blog Computationalcomplexity ·
Jul 26, 2026
mathematics
conjectures
◦୦◦◯◦୦◦⊚⚪⊚◦୦◦◯◦୦◦᪣🞊᪣𝆯᪣🞊᪣ ᪣🞊᪣𝆯᪣🞊᪣◦୦◦◯◦୦◦⊚⚪⊚◦୦◦◯◦୦◦
⠀ ᯽ ᯽ ⠀ ·
Jun 14, 2026
oo
mathematics
Egyptian fractions for 2/105
Mark Dominus ·
Jun 12, 2026
Math
Egyptian Fractions
Summing the Reciprocals of Primes
John Carlos Baez ·
Jun 1, 2026
mathematics
mathematics
Discover more posts →
AUTHOR
RECENT POSTS FROM THE AUTHOR
Choose how you want to continue.
Continue with GitHub
Continue with Google