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 28, 2026 22:05zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:17M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:17010,397,7941,019,00002,113,536expected "6442459076 ", got "2305422676 "
2May 17, 2026 05:17010,687,1371,106,00002,113,536expected "6442459076 ", got "2305422676 "
3May 17, 2026 05:17010,894,811946,00002,113,536expected "6442459076 ", got "2305422676 "
4Feb 28, 2026 22:053,12818,226,8432,753,00002,277,376
5Feb 28, 2026 22:063,13619,682,4592,760,00002,277,376
6Feb 28, 2026 22:063,14516,951,3842,768,00002,420,736
7Feb 28, 2026 22:063,16523,620,2862,785,00002,424,832
8Feb 28, 2026 22:053,29018,658,2201,930,000965,0002,424,832
9Feb 28, 2026 22:063,31528,297,3311,945,000972,0002,416,640
10Feb 28, 2026 22:053,31722,035,3981,946,000973,0002,416,640
11Feb 28, 2026 22:063,60125,752,1552,113,0001,056,0002,277,376
12Feb 28, 2026 22:053,70618,220,0513,261,00002,535,424
13Feb 28, 2026 22:063,77422,111,4963,321,00002,420,736
14Feb 28, 2026 22:053,80818,536,9623,351,00002,424,832
15Feb 28, 2026 22:053,84323,608,0383,382,00002,416,640