package main
import "fmt"
func isPrime(num int) bool {if num < 2 {return false}for i := 2; i*i <= num; i++ {if num%i == 0 {return false}}return true}
func main() {for i := 1; i <= 100; i++ {if isPrime(i) {fmt.Println(i)}}}
package main
import "fmt"
func isPrime(num int) bool {
if num < 2 {
return false
}
for i := 2; i*i <= num; i++ {
if num%i == 0 {
return false
}
}
return true
}
func main() {
for i := 1; i <= 100; i++ {
if isPrime(i) {
fmt.Println(i)
}
}
}