From 13ea2fc7d7cb4223feff316661efa8da09498a55 Mon Sep 17 00:00:00 2001 From: xlnxeksix <43644330+xlnxeksix@users.noreply.github.com> Date: Sat, 2 Nov 2019 04:10:28 +0300 Subject: [PATCH] Added one more example program Added prime finder for The machine --- Example_Data.txt | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Example_Data.txt b/Example_Data.txt index e844e72..332743b 100644 --- a/Example_Data.txt +++ b/Example_Data.txt @@ -10,7 +10,7 @@ len:25 len:31 3 1 14 10 5 6 15 2 6 6 2 1 14 3 5 2 14 3 15 7 7 9 4 15 11 1 9 7 1 4 0 -Example program: GCD (Ebob) +Example program 1: GCD (Ebob) (---Replace X, Y with your numbers---) where ( FinalR2 or [4] ) will be equal to gcd of x,y -> gcd(x,y)! len:30 @@ -41,3 +41,14 @@ eski r1'i geri yükle r1'den r2'yi çıkart. program başına dön. final r2: gcd + + +Example program 2 : Prime checker +(---Replace X with your number---) +If your number is prime [0] will be 1 if not [0] will be 0 +len:30 +------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- +[1, X, 8, 0, 10, 7, 0, 16, 2, 1, 11, 8, 0, 10, 16, 0, 2, 1, 3, 1, 16, 8, 0, 10, 26, 0, 2, 2, 3, 1, 16, 10, 34, 0, 3, 1, 2, 2, 14, 2, 1, 16, 10, 45, 0, 3, 1, 4, 37, 14, 13, 4, 1, 16, + 10, 61, 1, 0, 8, 0, 0, 1, 1, 4, 37, 11, 8, 37, 9, 34] + len:70 +-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------