back

by dmit·13y ago·view on hn ↗
You should use the same integer remainder operator (%) as in the Ruby version instead of math.Mod(float64(i), float64(j)):

  <...>
		for j := 2; j < limit; j++ {
			if i % j == 0 {
				found = true
  <...>