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 24, 2026 02:50zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:15M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:15010,322,8901,026,00002,113,536expected "6442459076 ", got "2305422876 "
2May 17, 2026 05:1508,305,0671,115,00002,113,536expected "6442459076 ", got "2305422876 "
3May 17, 2026 05:1508,250,3051,111,00002,113,536expected "6442459076 ", got "2305422876 "
4Feb 24, 2026 02:503,08517,981,7022,715,00002,416,640
5Feb 24, 2026 02:503,08619,698,6622,716,00002,424,832
6Feb 24, 2026 02:503,11919,674,3442,745,00002,428,928
7Feb 24, 2026 02:503,13317,454,2912,757,00002,424,832
8Feb 24, 2026 02:503,16019,443,1562,781,00002,420,736
9Feb 24, 2026 02:503,19118,738,5512,808,00002,428,928
10Feb 24, 2026 02:503,19722,788,2882,813,00002,420,736
11Feb 24, 2026 02:503,31719,638,5322,919,00002,416,640
12Feb 24, 2026 02:503,32216,318,2541,949,000974,0002,510,848
13Feb 24, 2026 02:503,47217,646,8352,037,0001,018,0002,277,376
14Feb 24, 2026 02:503,57720,363,5922,099,0001,049,0002,433,024
15Feb 24, 2026 02:503,62420,776,9612,126,0001,063,0002,420,736