Skip to content

Commit

Permalink
Merge pull request #198 from skver0/main
Browse files Browse the repository at this point in the history
Add more implementations
  • Loading branch information
mawerty authored Jan 12, 2024
2 parents 569d9a6 + 5fd3999 commit a84483b
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ A: Thecoderunsfasterwhentherearenouselessspacesandnewlines.
- CUDA
- C++
- C#
- D
- Dafny
- Dart
- DXL
Expand All @@ -65,6 +66,7 @@ A: Thecoderunsfasterwhentherearenouselessspacesandnewlines.
- Erlang
- F#
- Farsi (Persian)
- Fish
- FORTH
- FORTRAN 77
- Fortran 95
Expand All @@ -77,6 +79,7 @@ A: Thecoderunsfasterwhentherearenouselessspacesandnewlines.
- Haskell
- Haxe
- HolyC
- Hungarian
- HTML
- Java
- Javascript
Expand All @@ -98,6 +101,7 @@ A: Thecoderunsfasterwhentherearenouselessspacesandnewlines.
- Pascal
- Perl
- PHP
- PureScript
- Piet
- PL/SQL
- PostgreSQL
Expand Down
5 changes: 5 additions & 0 deletions implementations/main.d
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module IsPrime;

bool is_prime(int prime) {
return false;
}
7 changes: 7 additions & 0 deletions implementations/main.fish
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
function is_prime
if test -z "$argv[1]"
echo "Argument missing"
return 1
end
return 1
end
1 change: 1 addition & 0 deletions implementations/main.hu
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Nem
5 changes: 5 additions & 0 deletions implementations/main.purs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module IsPrime where

isPrime :: Int -> Boolean
isPrime _ = false

1 change: 1 addition & 0 deletions optimized_implementations/main.d
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module IsPrime;bool is_prime(int prime){return false;}
3 changes: 3 additions & 0 deletions optimized_implementations/main.fish
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function is_prime
return 1
end
1 change: 1 addition & 0 deletions optimized_implementations/main.hu
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Nem
4 changes: 4 additions & 0 deletions optimized_implementations/main.purs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module IsPrime where
isPrime :: Int -> Boolean
isPrime _ = false

0 comments on commit a84483b

Please sign in to comment.