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 21:10zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:01M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:01010,652,8891,186,00002,113,536expected "6442459076 ", got "2305422578 "
2May 17, 2026 07:0108,588,6411,183,00002,113,536expected "6442459076 ", got "2305422578 "
3May 17, 2026 07:0108,368,8141,104,00002,113,536expected "6442459076 ", got "2305422578 "
4Jan 24, 2026 21:113,38515,539,5341,986,000993,0002,355,200
5Jan 24, 2026 21:113,41323,630,7652,002,0001,001,0002,363,392
6Jan 24, 2026 21:103,43016,250,1562,012,0001,006,0002,351,104
7Jan 24, 2026 21:103,46722,694,7522,034,0001,017,0002,351,104
8Jan 24, 2026 21:113,53916,818,2271,038,0002,076,0002,359,296
9Jan 24, 2026 21:103,55319,965,5671,042,0002,085,0002,359,296