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 listApr 25, 2026 07:26olliecrowolliecrowScore: 12,722Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 25, 2026 07:2712,59729,163,6519,071,0002,015,0002,506,752
2Apr 25, 2026 07:2712,66332,619,1059,118,0002,026,0002,502,656
3Apr 25, 2026 07:2712,69725,168,3279,143,0002,031,0002,502,656
4Apr 25, 2026 07:2712,70531,721,4379,148,0002,033,0002,342,912
5Apr 25, 2026 07:2712,72224,891,85011,196,00002,494,464
6Apr 25, 2026 07:2712,75031,720,66110,200,0001,020,0002,510,848
7Apr 25, 2026 07:2712,80426,973,2799,220,0002,048,0002,506,752
8Apr 25, 2026 07:2712,82827,250,25710,263,0001,026,0002,342,912
9Apr 25, 2026 07:2712,89027,040,36410,313,0001,031,0002,342,912