aboutsummaryrefslogtreecommitdiff
path: root/examples/prime.pd
diff options
context:
space:
mode:
Diffstat (limited to 'examples/prime.pd')
-rw-r--r--examples/prime.pd21
1 files changed, 21 insertions, 0 deletions
diff --git a/examples/prime.pd b/examples/prime.pd
new file mode 100644
index 0000000..7fe557b
--- /dev/null
+++ b/examples/prime.pd
@@ -0,0 +1,21 @@
+#N canvas 0 0 450 300 10;
+#X obj 34 32 prime;
+#X text 82 34 a prime number detector;
+#X floatatom 51 116 8 0 0 0 - - -;
+#X obj 51 147 prime;
+#X msg 51 75 1;
+#X msg 81 75 2;
+#X msg 111 75 3;
+#X msg 142 74 4;
+#X floatatom 51 187 5 0 0 0 - - -;
+#X msg 175 74 11117;
+#X msg 227 74 1.23457e+06;
+#X text 114 193 1 if input is prime \, 0 otherwise;
+#X connect 2 0 3 0;
+#X connect 3 0 8 0;
+#X connect 4 0 2 0;
+#X connect 5 0 2 0;
+#X connect 6 0 2 0;
+#X connect 7 0 2 0;
+#X connect 9 0 2 0;
+#X connect 10 0 2 0;