Scala, 41 bytes x=>2 to x forall(d=>x%d+math.sqrt(d)%1>0) Try it online! Pretty straightforward
posted 3y ago by user
# Scala, 41 bytes ```scala x=>2 to x forall(d=>x%d+math.sqrt(d)%1>0) ``` [Try it online!](https://scastie.scala-lang.org/2Qg9NDVFTzKj3lC1L7On9g) Pretty straightforward