No sane person would even consider using SQL Server to construct a list of prime numbers. So just to prove that I’m not sane (as if there could be any doubt!), this post will be about finding prime numbers.
First a bit of history. Ward Pond wrote about efficient ways to populate a table with one million GUIDs. I posted a comment with a ...