Skip to content

Commit

Permalink
Merge pull request #185 from ckovey/main
Browse files Browse the repository at this point in the history
added BASIC implementation
  • Loading branch information
mawerty authored Jan 12, 2024
2 parents f4474b3 + 528019b commit d392d19
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ A: Thecoderunsfasterwhentherearenouselessspacesandnewlines.
- Atto-8
- AWK
- Bash
- BASIC
- Bc
- Beef
- Binary
Expand Down
7 changes: 7 additions & 0 deletions implementations/main.bas
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
CONST True = 1
CONST False = 0
DECLARE FUNCTION is_prime (x)

FUNCTION is_prime (x)
is_prime = False
END FUNCTION
6 changes: 6 additions & 0 deletions optimized_implementations/main.bas
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
DECLARE FUNCTION is_prime (x)

FUNCTION is_prime (x)
is_prime = 0
END FUNCTION

0 comments on commit d392d19

Please sign in to comment.