spiralDiagonals(101)
should return 692101.
testString: assert(spiralDiagonals(101) == 692101, 'spiralDiagonals(101)
should return 692101.');
- text: spiralDiagonals(303)
should return 18591725.
testString: assert(spiralDiagonals(303) == 18591725, 'spiralDiagonals(303)
should return 18591725.');
- text: spiralDiagonals(505)
should return 85986601.
testString: assert(spiralDiagonals(505) == 85986601, 'spiralDiagonals(505)
should return 85986601.');
- text: spiralDiagonals(1001)
should return 669171001.
testString: assert(spiralDiagonals(1001) == 669171001, 'spiralDiagonals(1001)
should return 669171001.');
```