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 listMar 20, 2026 00:40olliecrowolliecrowScore: 15,600Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 20, 2026 00:4015,57647,132,66113,707,00002,498,560
2Mar 20, 2026 00:4015,58441,962,89813,714,00002,502,656
3Mar 20, 2026 00:4015,58638,890,71113,716,00002,506,752
4Mar 20, 2026 00:4015,59039,917,23413,719,00002,289,664
5Mar 20, 2026 00:4015,60029,864,62013,728,00002,502,656
6Mar 20, 2026 00:4015,63541,415,37013,759,00002,502,656
7Mar 20, 2026 00:4015,80745,577,45012,917,000993,0002,502,656
8Mar 20, 2026 00:4015,81040,256,29613,913,00002,494,464
9Mar 20, 2026 00:4015,81630,663,38512,924,000994,0002,502,656