X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=src%2Fadvent23%2Fadvent23.hs;h=642343c160815b10762154e1cbc7c3c8c15c0e46;hb=f5e0b12e7573467fb6644fef285fc7a816ccdfe2;hp=516819f917464e04f99d89688faa355484ca2fa7;hpb=d182cea942b52e5522022adf376011c74d3942e7;p=advent-of-code-17.git diff --git a/src/advent23/advent23.hs b/src/advent23/advent23.hs index 516819f..642343c 100644 --- a/src/advent23/advent23.hs +++ b/src/advent23/advent23.hs @@ -60,13 +60,13 @@ part1 instructions = emptyMachine - -- Part 2 following results of analysis by Dario Petrillo -- https://github.com/dp1/AoC17/blob/master/day23.5.txt part2 = length $ filter (not . P.isPrime) [start, start + 17 .. end] where start = 84 * 100 + 100000 end = start + 17000 + executeInstructions = do instrs <- ask m <- get