fix python isprime

This commit is contained in:
2019-10-18 22:55:26 +02:00
parent 4e59fa8048
commit 5adde814c9
4 changed files with 9 additions and 9 deletions

View File

@ -15,7 +15,6 @@ func handler(w http.ResponseWriter, r *http.Request) {
if err != nil {
fmt.Errorf("Failed to parse %s as int! %v", target, err)
}
log.Print("Checking if %s is prime", target)
if num <= 1 {
fmt.Sprintf("%d is not prime", num)
}
@ -28,8 +27,6 @@ func handler(w http.ResponseWriter, r *http.Request) {
}
func main() {
log.Print("Hello world sample started.")
http.HandleFunc("/", handler)
port := os.Getenv("PORT")