mirror of
https://github.com/bootdotdev/fcc-learn-golang-assets.git
synced 2025-12-13 16:51:17 +00:00
24 lines
308 B
Go
24 lines
308 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
func printPrimes(max int) {
|
|
// ?
|
|
}
|
|
|
|
// don't edit below this line
|
|
|
|
func test(max int) {
|
|
fmt.Printf("Primes up to %v:\n", max)
|
|
printPrimes(max)
|
|
fmt.Println("===============================================================")
|
|
}
|
|
|
|
func main() {
|
|
test(10)
|
|
test(20)
|
|
test(30)
|
|
}
|