Skip to main content
Removed space between 'readLine()' and 'as'
Source Link

Groovy, 9292 91

i=System.in.newReader().readLine() as int print i==2||i>1&&!(true in(2..i-1).collect{i%it<1}) 

Such a verbose way to read from stdin...

Groovy, 92

i=System.in.newReader().readLine() as int print i==2||i>1&&!(true in(2..i-1).collect{i%it<1}) 

Such a verbose way to read from stdin...

Groovy, 92 91

i=System.in.newReader().readLine()as int print i==2||i>1&&!(true in(2..i-1).collect{i%it<1}) 

Such a verbose way to read from stdin...

Source Link

Groovy, 92

i=System.in.newReader().readLine() as int print i==2||i>1&&!(true in(2..i-1).collect{i%it<1}) 

Such a verbose way to read from stdin...