()
| 5 | ) |
| 6 | |
| 7 | func getTestsForPhi() []struct { |
| 8 | n int64 |
| 9 | expected int64 |
| 10 | } { |
| 11 | var tests = []struct { |
| 12 | n int64 |
| 13 | expected int64 |
| 14 | }{ |
| 15 | {4, 2}, |
| 16 | {5, 4}, |
| 17 | {7, 6}, |
| 18 | {10, 4}, |
| 19 | {999, 648}, |
| 20 | {1000, 400}, |
| 21 | {1000000, 400000}, |
| 22 | {999999, 466560}, |
| 23 | {999999999999878, 473684210526240}, |
| 24 | } |
| 25 | return tests |
| 26 | } |
| 27 | |
| 28 | func TestPhi(t *testing.T) { |
| 29 |