News for hackers. Stuff that matters.
Re:The Ulam Spiral of Primes by nitrogen on Wednesday June 23, 2010 @03:09AM (#1454335)
Is there a more generalized version of that pattern, perhaps something like this (I haven't checked):

  let P(n) be the nth prime number: P(1)=2, etc.
  let n be an integer >= 2, and m be an integer > n
  then P(m) ≡ 1 and (P(n) - 1) (mod P(n))

?

There are no comments on this comment yet.