A simple primality test in Scala, using
6k ± 1This piece of code is described in this DEV.TO article.
-
Install 'sbt' from here: http://www.scala-sbt.org/download.html
-
Run a sbt shell with
cd [project dir] sbt -
Compile with
compile -
Run with
run