From 70f0e644dfaabbf02311ad2acf7f6b66adb502af Mon Sep 17 00:00:00 2001 From: Chris Kovey Date: Fri, 12 Jan 2024 09:48:22 -0500 Subject: [PATCH 1/2] added BASIC implementation --- implementations/main.bas | 7 +++++++ optimized_implementations/main.bas | 6 ++++++ 2 files changed, 13 insertions(+) create mode 100644 implementations/main.bas create mode 100644 optimized_implementations/main.bas diff --git a/implementations/main.bas b/implementations/main.bas new file mode 100644 index 0000000..889a7c1 --- /dev/null +++ b/implementations/main.bas @@ -0,0 +1,7 @@ +CONST True = 1 +CONST False = 0 +DECLARE FUNCTION is_prime (x) + +FUNCTION is_prime (x) + is_prime = False +END FUNCTION diff --git a/optimized_implementations/main.bas b/optimized_implementations/main.bas new file mode 100644 index 0000000..dfacc3d --- /dev/null +++ b/optimized_implementations/main.bas @@ -0,0 +1,6 @@ +DECLARE FUNCTION is_prime (x) + +FUNCTION is_prime (x) + is_prime = 0 +END FUNCTION + From 528019bdd9cb084321f1b44a0d3678935e62d5d4 Mon Sep 17 00:00:00 2001 From: Chris Kovey Date: Fri, 12 Jan 2024 12:08:52 -0500 Subject: [PATCH 2/2] updated readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 926984a..28dc0ab 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ A: Thecoderunsfasterwhentherearenouselessspacesandnewlines. - Atto-8 - AWK - Bash +- BASIC - Bc - Beef - BoGL