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 01:41zielajzielajScore: 3,133Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 24, 2026 01:413,08218,549,8902,712,00002,428,928
2Feb 24, 2026 01:413,08619,125,8722,716,00002,277,376
3Feb 24, 2026 01:413,10821,006,2612,735,00002,420,736
4Feb 24, 2026 01:423,10820,176,8212,735,00002,424,832
5Feb 24, 2026 01:413,10916,904,6462,736,00002,535,424
6Feb 24, 2026 01:413,11417,291,9262,740,00002,420,736
7Feb 24, 2026 01:423,11720,429,4972,743,00002,424,832
8Feb 24, 2026 01:413,12016,634,5892,746,00002,416,640
9Feb 24, 2026 01:423,12018,615,9541,373,0001,373,0002,420,736
10Feb 24, 2026 01:423,13320,843,6152,757,00002,416,640
11Feb 24, 2026 01:413,14317,422,5832,766,00002,424,832
12Feb 24, 2026 01:423,27019,943,676959,0001,919,0002,420,736
13Feb 24, 2026 01:423,30120,133,798968,0001,937,0002,428,928
14Feb 24, 2026 01:413,30818,705,1251,941,000970,0002,433,024
15Feb 24, 2026 01:413,31519,065,4671,945,000972,0002,416,640
16Feb 24, 2026 01:413,32819,843,027976,0001,953,0002,531,328
17Feb 24, 2026 01:413,63220,964,2882,131,0001,065,0002,420,736
18Feb 24, 2026 01:413,63914,651,3242,135,0001,067,0002,424,832