Blum integer: Difference between revisions
Content added Content deleted
(Added Go) |
(→{{header|Go}}: Oops!) |
||
Line 129: | Line 129: | ||
if bc == 400000 { |
if bc == 400000 { |
||
fmt.Println("\n% distribution of the first 400,000 Blum integers:") |
fmt.Println("\n% distribution of the first 400,000 Blum integers:") |
||
digits := []int {1, 3, 7, 9} |
|||
for j := 0; j < 4; j++ { |
for j := 0; j < 4; j++ { |
||
fmt.Printf(" %6.3f%% end in %d\n", float64(counts[j])/4000, j) |
fmt.Printf(" %6.3f%% end in %d\n", float64(counts[j])/4000, digits[j]) |
||
} |
} |
||
return |
return |