Post History
Ruby, 27 bytes ->n{(2..n).all?{n%_1**2>0}} Try it online
Answer
#5: Post edited
- # [Ruby](https://www.ruby-lang.org/), 27 bytes
- ```ruby
- ->n{(2..n).all?{n%_1**2>0}}
- ```
**[Try it online]()**
- # [Ruby](https://www.ruby-lang.org/), 27 bytes
- ```ruby
- ->n{(2..n).all?{n%_1**2>0}}
- ```
- **[Try it online](https://ato.pxeger.com/run?1=m72kqDSpcsGiNNulpSVpuha7de3yqjWM9PTyNPUSc3Lsq_NU4w21tIzsDGprISp2FChoGOrpGRoYaOoVp-akJpdUp0XHG8ZCpRcsgNAA)**
#4: Post edited
# [Ruby](https://www.ruby-lang.org/), 29 bytes- ```ruby
->n{(2..n).all?{0.<n.%_1**2}}- ```
**[Try it online](https://ato.pxeger.com/run?1=m72kqDSpcsGiNNulpSVpuhZ7de3yqjWM9PTyNPUSc3Lsqw30bPL0VOMNtbSMamshanYUKGgY6ukZGhho6hWn5qQml1SnRccbxkKlFyyA0AA)**
- # [Ruby](https://www.ruby-lang.org/), 27 bytes
- ```ruby
- ->n{(2..n).all?{n%_1**2>0}}
- ```
- **[Try it online]()**
#3: Post edited
- # [Ruby](https://www.ruby-lang.org/), 29 bytes
- ```ruby
- ->n{(2..n).all?{0.<n.%_1**2}}
- ```
**[Try it online](https://ato.pxeger.com/run?1=m72kqDSpcsGiNNulpSVpuhb7dO3yqhU1jPT08jT1EvMq7asN9ezy9FTjDbW0jGprIYp2FChoGOrpGRoYaOoVp-akJpdUp0XHG8ZCpRcsgNAA)**
- # [Ruby](https://www.ruby-lang.org/), 29 bytes
- ```ruby
- ->n{(2..n).all?{0.<n.%_1**2}}
- ```
- **[Try it online](https://ato.pxeger.com/run?1=m72kqDSpcsGiNNulpSVpuhZ7de3yqjWM9PTyNPUSc3Lsqw30bPL0VOMNtbSMamshanYUKGgY6ukZGhho6hWn5qQml1SnRccbxkKlFyyA0AA)**
#2: Post edited
# [Ruby](https://www.ruby-lang.org/), 30 bytes- ```ruby
->n{!(2..n).any?{1.>n.%_1**2}}- ```
- **[Try it online](https://ato.pxeger.com/run?1=m72kqDSpcsGiNNulpSVpuhb7dO3yqhU1jPT08jT1EvMq7asN9ezy9FTjDbW0jGprIYp2FChoGOrpGRoYaOoVp-akJpdUp0XHG8ZCpRcsgNAA)**
- # [Ruby](https://www.ruby-lang.org/), 29 bytes
- ```ruby
- ->n{(2..n).all?{0.<n.%_1**2}}
- ```
- **[Try it online](https://ato.pxeger.com/run?1=m72kqDSpcsGiNNulpSVpuhb7dO3yqhU1jPT08jT1EvMq7asN9ezy9FTjDbW0jGprIYp2FChoGOrpGRoYaOoVp-akJpdUp0XHG8ZCpRcsgNAA)**