Programming Challenges

Challenge 1: Prime number

Write an OCaml function, is_prime: integer -> bool, that returns true if the input number is a prime number and false otherwise.

Get hands-on with 1400+ tech skills courses.