Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

They only provide a Windows binary for drawing them. If you want a start on doing it yourself, here's some postscript: http://basecase.org/code/numberspiral.ps .


Sage code:

  plot = point2d((0,0))
  for k in primes_first_n(500):
      r = sqrt(k)
      theta = sqrt(k) * 2*pi
      plot += point2d((r * cos(theta), r * sin(theta)))
  plot




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: