Sum of prime numbers Andrey Tsvetkov

Compute the sum of all prime numbers in a stream of binary integers as fast as possible.

Input: 1 000 000 uint32 values in little-endian binary on STDIN (4 bytes each).

Output: The uint64 sum of all values that are prime, printed as a decimal string.

Back to listJan 24, 2026 02:52zielajzielajError
Source Code

Source code access is restricted. Log in to request access.

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 06:51M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 06:5108,390,2281,100,00002,113,536expected "6442459076 ", got "2305422578 "
2May 17, 2026 06:5108,272,4381,095,00002,113,536expected "6442459076 ", got "2305422578 "
3May 17, 2026 06:51010,444,2411,540,00002,113,536expected "6442459076 ", got "2305422578 "
4Jan 24, 2026 02:523,34118,397,8371,960,000980,0002,351,104
5Jan 24, 2026 02:503,37618,164,4131,981,000990,0002,277,376
6Jan 24, 2026 02:523,39317,984,9181,991,000995,0002,277,376
7Jan 24, 2026 02:503,39920,190,8551,994,000997,0002,367,488
8Jan 24, 2026 02:503,40923,593,1952,000,0001,000,0002,355,200
9Jan 24, 2026 02:513,43021,193,7971,006,0002,012,0002,355,200
10Jan 24, 2026 02:503,44718,722,1232,022,0001,011,0002,273,280
11Jan 24, 2026 02:523,45320,310,7942,026,0001,013,0002,355,200
12Jan 24, 2026 02:513,46415,891,7341,016,0002,032,0002,363,392
13Jan 24, 2026 02:513,47021,832,8142,036,0001,018,0002,355,200
14Jan 24, 2026 02:503,48520,445,5502,045,0001,022,0002,363,392
15Jan 24, 2026 02:503,50220,359,2702,055,0001,027,0002,277,376
16Jan 24, 2026 02:523,51617,695,7721,031,0002,063,0002,359,296
17Jan 24, 2026 02:524,26119,140,1752,500,0001,250,0002,355,200
18Jan 24, 2026 02:524,31917,914,4602,534,0001,267,0002,347,008