aboutsummaryrefslogtreecommitdiff
path: root/primes.trt
diff options
context:
space:
mode:
authortomsmeding <hallo@tomsmeding.nl>2014-04-24 22:14:39 +0200
committertomsmeding <hallo@tomsmeding.nl>2014-04-24 22:14:39 +0200
commitc275a149eec2f8641dbce4cdf114ab0dca5216ff (patch)
tree3b94e96913f1bb1bc72979f82a8677f6e1e34f85 /primes.trt
Initial commit
Already did some programming though…
Diffstat (limited to 'primes.trt')
-rw-r--r--primes.trt29
1 files changed, 29 insertions, 0 deletions
diff --git a/primes.trt b/primes.trt
new file mode 100644
index 0000000..84a0f55
--- /dev/null
+++ b/primes.trt
@@ -0,0 +1,29 @@
+"Up to which number do you want a list of primes?" OUT
+INP INT
+"Here you go:" OUT
+2 2
+"2" OUT
+#MAIN
+1 SUM
+DUP
+2 PLL
+DUP
+3 PSH
+MOD
+PI_
+NOT
+@NOPRIME IFJ
+DUP
+2 PSH
+1 GRB
+1 PLL
+DUP
+STR
+OUT
+#NOPRIME
+DUP
+3 PLL
+DUP
+4 PSH
+SML
+@MAIN IFJ \ No newline at end of file