Skip to content

Instantly share code, notes, and snippets.

@xy4n
Created October 16, 2015 20:09
Show Gist options
  • Save xy4n/bbf4fa7919dc7db02e92 to your computer and use it in GitHub Desktop.
Save xy4n/bbf4fa7919dc7db02e92 to your computer and use it in GitHub Desktop.
(loop for counter from 1
for triangle = counter
then (+ counter triangle)
for factors = (loop for i from 1 to (sqrt triangle)
counting (zerop (mod triangle i)) into fac
finally (return (* 2 fac)))
when (> factors 500)
return triangle)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment