Compreendi colega, mas obrigada pela ajuda. Saudações,
Em quarta-feira, 18 de dezembro de 2019 16:19:25 UTC-3, Yamil Bracho escreveu: > > Este é o seu código com alguns arranjos (realmente mínimos): > > package main > > import ( > "fmt" > ) > > func main() { > var x int = 2 > var y int = 32 > > fmt.Print("Informe o numero:") > var primo bool > > for i := x; i < y+1; i++ { > primo = true > > for j := 2; j < i; j++ { > > if i%j == 0 { > primo = false > break > } > } > > if primo { > fmt.Println(i) > } > } > } > > > > El miércoles, 18 de diciembre de 2019, 13:39:17 (UTC-5), > arruda...@gmail.com escribió: >> >> Olá, tudo bem? >> >> >> Estou iniciando meus estudos em Golang e honestamente, adorei a >> linguagem. Gostaria de saber qual meu erro, diante desse algoritmo que fiz >> em Go. Estou verificando numeros primos de 3 á 31. E a sua saida deve >> sair, e estou com problema de sintaxe dele, da um help ai gente >> >> 3 5 >> 5 7 >> 11 13 >> 17 19 >> 29 31 >> >> segue anexo a pasta do repositório do código. >> >> https://pastebin.com/mwewbd7e >> > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/a3f815b0-417e-4de1-b601-b521601bdf47%40googlegroups.com.