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 22, 2026 16:38zielajzielajScore: 3,322Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 22, 2026 16:383,12218,947,2072,747,00002,420,736
2Feb 22, 2026 16:383,14019,609,1012,763,00002,535,424
3Feb 22, 2026 16:383,14221,612,0062,765,00002,420,736
4Feb 22, 2026 16:383,30718,845,4541,940,000970,0002,535,424
5Feb 22, 2026 16:383,31426,261,1961,944,000972,0002,514,944
6Feb 22, 2026 16:383,31420,839,3742,916,00002,433,024
7Feb 22, 2026 16:383,32218,416,4601,949,000974,0002,420,736
8Feb 22, 2026 16:383,32519,977,0351,951,000975,0002,433,024
9Feb 22, 2026 16:383,33416,644,6701,956,000978,0002,424,832
10Feb 22, 2026 16:383,34518,248,2841,963,000981,0002,420,736
11Feb 22, 2026 16:383,36816,186,604988,0001,976,0002,420,736
12Feb 22, 2026 16:383,49224,101,1202,049,0001,024,0002,277,376