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 listFeb 16, 2026 00:44zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 06:37M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 06:3708,310,5141,045,00002,113,536expected "6442459076 ", got "2305422362 "
2May 17, 2026 06:3708,470,4091,113,00002,113,536expected "6442459076 ", got "2305422362 "
3May 17, 2026 06:3708,709,8051,020,00002,113,536expected "6442459076 ", got "2305422362 "
4Feb 16, 2026 00:423,29318,076,4611,932,000966,0002,441,216
5Feb 16, 2026 00:423,31519,587,8701,945,000972,0002,441,216
6Feb 16, 2026 00:423,32418,193,9881,950,000975,0002,441,216
7Feb 16, 2026 00:423,32420,750,6881,950,000975,0002,437,120
8Feb 16, 2026 00:423,33222,189,0681,955,000977,0002,453,504
9Feb 16, 2026 00:433,34116,347,5371,960,000980,0002,433,024
10Feb 16, 2026 00:443,39323,796,3731,991,000995,0002,433,024
11Feb 16, 2026 00:423,40919,221,9452,000,0001,000,0002,433,024
12Feb 16, 2026 00:433,41017,552,4472,001,0001,000,0002,281,472
13Feb 16, 2026 00:423,42720,950,1251,005,0002,011,0002,281,472
14Feb 16, 2026 00:443,44122,424,7662,019,0001,009,0002,281,472
15Feb 16, 2026 00:423,47019,510,5942,036,0001,018,0002,433,024
16Feb 16, 2026 00:423,68621,084,6103,244,00002,277,376
17Feb 16, 2026 00:433,74721,006,8373,297,00002,437,120
18Feb 16, 2026 00:443,98919,728,4662,340,0001,170,0002,437,120