Created
October 16, 2015 20:09
-
-
Save xy4n/bbf4fa7919dc7db02e92 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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