codewars: solve 2 problems in ocaml

This commit is contained in:
Ivan R. 2024-02-20 00:44:19 +05:00
parent 615aa114f2
commit 9951704e30
No known key found for this signature in database
GPG key ID: 56C7BAAE859B302C
2 changed files with 4 additions and 0 deletions

View file

@ -0,0 +1,2 @@
(* TODO: Write a function `greet ()` that returns "hello world!" *)
let greet () = "hello world!";;

View file

@ -0,0 +1,2 @@
let am_i_wilson_prime (n: int): bool =
if n == 5 || n == 13 || n == 563 then true else false;;