GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — project_euler/euler10.py at main · Babissimo/project_euler Expand file tree/ Copy patheuler10.pyMore file actions 15 lines (10 loc) · 249 Bytes / Copy patheuler10.pyFile metadata and controls15 lines (10 loc) · 249 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 sum = 0 is_composite = [0] * 2000001 index = 2 while index < 2000000: if is_composite[index] == 0: sum += index for multiple in range(2*index, 2000000, index): is_composite[multiple] = 1 index += 1 print(sum) |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |