2017 Day 23 Complete

This commit is contained in:
2017-12-23 09:01:32 -06:00
parent d16cc22158
commit 6c4e6ec824
8 changed files with 387 additions and 268 deletions

View File

@@ -0,0 +1,52 @@
b = 99
c = b
if a != 0 {
b = b * 100
b = b + 100000
c = b
c = c + 17000
}
// b = 109900
// c = 126900
for {
f = 1
d = 2
for {
e = 2
g = d
for {
g = g * e
g = g - b
if g == 0 {
f = 0
}
e = e + 1
g = e
g = g - b
if g != 0 {
break
}
}
d = d + 1
g = d
g = g - b
if g != 0 {
break
}
}
if f == 0 {
h = h + 1
}
g = b
g = g - c
if g == 0 {
break
}
b = b + 17
}