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 14, 2026 11:51olliecrowolliecrowScore: 42,448Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 14, 2026 11:5142,26662,146,25136,189,0001,005,0002,502,656
2Feb 14, 2026 11:5142,37258,287,21237,287,00002,498,560
3Feb 14, 2026 11:5142,39460,151,27737,307,00002,498,560
4Feb 14, 2026 11:5142,42658,623,73737,335,00002,502,656
5Feb 14, 2026 11:5142,44861,007,42037,354,00002,490,368
6Feb 14, 2026 11:5142,46362,546,01937,367,00002,502,656
7Feb 14, 2026 11:5142,50559,889,65737,404,00002,498,560
8Feb 14, 2026 11:5142,55260,151,67237,446,00002,535,424
9Feb 14, 2026 11:5142,71859,901,86637,592,00002,494,464