Charles must mow his lawn side to side, front to back, and diagonally, and the three mathematicians judging it want a prime cut. Fill an N × N grid with the numbers 1 to N² so its lines add up to primes.
Thanks to André Wauters for the 2012 contest idea, and to Roy van Rijn, who wrote the original scoring code. Dmitry Kamenetsky and Alex Chernov both finished 2012 with a perfect 50, so every record on the board was reached by both of them.
As on the original site, here is the code that scores every entry, so you can check your own before you send it. It's written to be easy to read, not fast. Each version reads one entry per line and prints its score. We've checked all six against the site on all 261 of Dmitry Kamenetsky's 2012 grids, plus hundreds of broken ones.
Why QBasic? It's the first programming language Neil, who runs ISS, ever learned, and this version is a nod to that. QBasic can't read typed-in input the way the others do, so it reads your entries from GRIDS.TXT and saves its answers in RESULTS.TXT.
Loading…
Your concern goes to Neil privately. Nothing shows on the board, and he keeps your name to himself. If it needs talking through, he opens a thread on Discord, where the player can answer.
Papers, write-ups and data about Prime Sums that players have shared. Every file has been looked over by Neil before going up. Files about every contest are in the Library.
Loading…