summaryrefslogtreecommitdiff
path: root/p1.lisp
diff options
context:
space:
mode:
authorTom Barrett <tom@tombarrett.xyz>2021-06-30 17:20:46 +0200
committerTom Barrett <tom@tombarrett.xyz>2021-06-30 17:20:46 +0200
commitee57979cfaf37aaf1d7c72155a3f65cc02caa286 (patch)
treefb1867efd7d9eae3daf8ce89e3de752fa983307b /p1.lisp
first threeHEADmaster
Diffstat (limited to 'p1.lisp')
-rw-r--r--p1.lisp10
1 files changed, 10 insertions, 0 deletions
diff --git a/p1.lisp b/p1.lisp
new file mode 100644
index 0000000..08723e2
--- /dev/null
+++ b/p1.lisp
@@ -0,0 +1,10 @@
+(setq sum 0)
+(loop for i from 0 to 1001 do
+ (if (eq (mod i 3) 0)
+ (setq sum (+ sum i))
+ (if (eq (mod i 5) 0)
+ (setq sum (+ sum i))
+ )
+ )
+)
+(print sum)