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 6, 2026 22:23vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 06:54M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 06:5408,476,2021,195,00002,117,632expected "6442459076 ", got " "stderr
2May 17, 2026 06:54010,249,5471,190,00002,117,632expected "6442459076 ", got " "stderr
3May 17, 2026 06:54011,321,5841,212,00002,117,632expected "6442459076 ", got " "stderr
4Feb 6, 2026 22:233,38516,561,128993,0001,986,0002,498,560
5Feb 6, 2026 22:233,43824,669,8811,008,0002,017,0002,502,656
6Feb 6, 2026 22:233,44115,905,6221,009,0002,019,0002,482,176
7Feb 6, 2026 22:233,45822,528,3301,014,0002,029,0002,494,464
8Feb 6, 2026 22:233,51618,308,0371,031,0002,063,0002,490,368
9Feb 6, 2026 22:233,60319,080,2781,057,0002,114,0002,281,472