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 5, 2026 16:46vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:15M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:1509,376,9031,199,00002,117,632expected "6442459076 ", got " "stderr
2May 17, 2026 07:15010,137,5591,276,00002,117,632expected "6442459076 ", got " "stderr
3May 17, 2026 07:1508,448,6091,200,00002,117,632expected "6442459076 ", got " "stderr
4Feb 5, 2026 16:463,45024,563,1361,012,0002,024,0002,494,464
5Feb 5, 2026 16:463,47216,680,6761,018,0002,037,0002,494,464
6Feb 5, 2026 16:463,48820,245,4291,023,0002,046,0002,535,424
7Feb 5, 2026 16:463,49116,863,8511,024,0002,048,0002,502,656
8Feb 5, 2026 16:463,50821,362,8571,029,0002,058,0002,498,560
9Feb 5, 2026 16:463,51821,486,1541,032,0002,064,0002,281,472