Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (11 sloc) 266 Bytes
# This is just a matter of finding the patterns in each diagonal.
function euler28()
sum::Uint64 = 1
for n in 1:500
sum += (2n+1)^2
sum += 2n*(2n+1) + 1
sum += (2n)^2 + 1
sum += 2n*(2n-1) + 1
end
println(dec(sum))
end
Something went wrong with that request. Please try again.