22 "def coordinates():\n",
69 "output_type": "execute_result"
73 "list(itertools.islice(coordinates(), 20))"
88 " c = (c * 252533) % 33554393"
101 "{(1, 1): 20151125,\n",
102 " (1, 2): 18749137,\n",
103 " (1, 3): 17289845,\n",
104 " (1, 4): 30943339,\n",
105 " (1, 5): 10071777,\n",
106 " (2, 1): 31916031,\n",
107 " (2, 2): 21629792,\n",
108 " (2, 3): 16929656,\n",
109 " (2, 4): 7726640,\n",
110 " (2, 5): 15514188,\n",
111 " (3, 1): 16080970,\n",
112 " (3, 2): 8057251,\n",
113 " (3, 3): 1601130,\n",
114 " (3, 4): 7981243,\n",
115 " (4, 1): 24592653,\n",
116 " (4, 2): 32451966,\n",
117 " (4, 3): 21345942,\n",
119 " (5, 2): 17552253,\n",
123 "execution_count": 7,
125 "output_type": "execute_result"
129 "{k: v for k, v in zip(itertools.islice(coordinates(), 20), code())}"
134 "execution_count": 11,
145 "execution_count": 11,
147 "output_type": "execute_result"
151 "list(itertools.islice(itertools.dropwhile(lambda c: not (c[0] == 4 and c[1] == 4), coordinates()), 1))"
156 "execution_count": 17,
164 "{(2981, 3075): 9132360}"
167 "execution_count": 17,
169 "output_type": "execute_result"
173 "# To continue, please consult the code grid in the manual. Enter the code at row 2981, column 3075.\n",
174 "target_row = 2981\n",
175 "target_col = 3075\n",
176 "{k: v for k, v in itertools.islice(itertools.dropwhile(lambda c: not (c[0][0] == target_row and c[0][1] == target_col), \n",
177 " zip(coordinates(), code())),\n",
183 "execution_count": null,
193 "display_name": "Python 3",
194 "language": "python",
202 "file_extension": ".py",
203 "mimetype": "text/x-python",
205 "nbconvert_exporter": "python",
206 "pygments_lexer": "ipython3",