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 7, 2026 03:38zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:00M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:0008,854,7421,116,00002,113,536expected "6442459076 ", got "2305422362 "
2May 17, 2026 07:0008,816,4501,108,00002,113,536expected "6442459076 ", got "2305422362 "
3May 17, 2026 07:00010,516,7331,022,00002,113,536expected "6442459076 ", got "2305422362 "
4Feb 7, 2026 03:373,36119,106,3091,972,000986,0002,535,424
5Feb 7, 2026 03:373,38023,767,5351,983,000991,0002,351,104
6Feb 7, 2026 03:383,46417,672,2332,032,0001,016,0002,347,008
7Feb 7, 2026 03:373,46517,543,1031,016,0002,033,0002,351,104
8Feb 7, 2026 03:383,46819,219,9071,017,0002,035,0002,351,104
9Feb 7, 2026 03:383,51917,804,8231,032,0002,065,0002,355,200