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 04:25vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:20M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:2009,457,5611,178,00002,113,536expected "6442459076 ", got "1 "
2May 17, 2026 05:2008,763,6101,184,00002,113,536expected "6442459076 ", got "1 "
3May 17, 2026 05:20010,057,3421,257,00002,113,536expected "6442459076 ", got "1 "
4Feb 7, 2026 04:253,35619,548,039984,0001,969,0002,502,656
5Feb 7, 2026 04:253,37320,644,573989,0001,979,0002,498,560
6Feb 7, 2026 04:253,38224,189,825992,0001,984,0002,498,560
7Feb 7, 2026 04:253,38321,345,441992,0001,985,0002,498,560
8Feb 7, 2026 04:253,38321,114,321992,0001,985,0002,502,656
9Feb 7, 2026 04:253,40219,066,559998,0001,996,0002,502,656
10Feb 7, 2026 04:253,41323,583,4231,001,0002,002,0002,277,376
11Feb 7, 2026 04:253,41616,365,2441,002,0002,004,0002,535,424
12Feb 7, 2026 04:253,59820,571,8581,055,0002,111,0002,494,464