MCPcopy Create free account
hub / github.com/TheAlgorithms/Go / getSumOfProperDivisorsTestCases

Function getSumOfProperDivisorsTestCases

math/perfectnumber_test.go:18–89  ·  view source on GitHub ↗

getSumOfProperDivisorsTestCases returns an array of test data for the tests of the function SumOfProperDivisors. Data was verified using [A001065]. [A001065]: https://oeis.org/A001065/b001065.txt

()

Source from the content-addressed store, hash-verified

16// Data was verified using [A001065].
17// [A001065]: https://oeis.org/A001065/b001065.txt
18func getSumOfProperDivisorsTestCases() []testCaseSumOfProperDivisors {
19 return []testCaseSumOfProperDivisors{
20 {0, 0},
21 {1, 0},
22 {2, 1},
23 {3, 1},
24 {4, 3},
25 {5, 1},
26 {6, 6},
27 {7, 1},
28 {8, 7},
29 {9, 4},
30 {10, 8},
31 {11, 1},
32 {12, 16},
33 {13, 1},
34 {14, 10},
35 {15, 9},
36 {16, 15},
37 {17, 1},
38 {18, 21},
39 {19, 1},
40 {20, 22},
41 {21, 11},
42 {22, 14},
43 {23, 1},
44 {24, 36},
45 {25, 6},
46 {26, 16},
47 {27, 13},
48 {28, 28},
49 {29, 1},
50 {30, 42},
51 {31, 1},
52 {32, 31},
53 {33, 15},
54 {34, 20},
55 {35, 13},
56 {36, 55},
57 {37, 1},
58 {38, 22},
59 {39, 17},
60 {40, 50},
61 {41, 1},
62 {42, 54},
63 {43, 1},
64 {44, 40},
65 {45, 33},
66 {46, 26},
67 {47, 1},
68 {48, 76},
69 {49, 8},
70 {50, 43},
71 {51, 21},
72 {52, 46},
73 {53, 1},
74 {54, 66},
75 {55, 17},

Callers 1

TestSumOfProperDivisorsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected