Skip to main content
1 of 2
Martijn
  • 161
  • 1
  • 6

Scala, 109 bytes

#!/bin/sh exec scala "$0" "$@" !# print(((a:Int)=>if(a==2)true;else!2.to(a-1).exists(a%_==0))(args(0).toInt)) 

JVM and yet not last place :D

Does use some bash functionality but I'm using Scala so don't be too hard on me.

Martijn
  • 161
  • 1
  • 6