Skip to content

Commit de23d74

Browse files
committed
Update problem file
1 parent 4438cf4 commit de23d74

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
https://projecteuler.net/problem=28
2+
3+
# Number Spiral Diagonals
4+
5+
Starting with the number $1$ and moving to the right in a clockwise direction a
6+
$5$ by $5$ spiral is formed as follows:
7+
8+
```
9+
21 22 23 24 25
10+
20 7 8 9 10
11+
19 6 1 2 11
12+
18 5 4 3 12
13+
17 16 15 14 13
14+
```
15+
16+
It can be verified that the sum of the numbers on the diagonals is $101$.
17+
18+
What is the sum of the numbers on the diagonals in a $1001$ by $1001$ spiral
19+
formed in the same way?

0 commit comments

Comments
 (0)