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 4, 2026 00:22vahookvahookScore: 3,772Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 4, 2026 00:223,71421,412,2172,179,0001,089,0002,502,656
2Feb 4, 2026 00:223,73120,383,1332,189,0001,094,0002,277,376
3Feb 4, 2026 00:223,73819,226,8252,193,0001,096,0002,490,368
4Feb 4, 2026 00:223,76820,458,2612,211,0001,105,0002,498,560
5Feb 4, 2026 00:223,77217,452,4272,213,0001,106,0002,502,656
6Feb 4, 2026 00:223,77417,655,3672,214,0001,107,0002,277,376
7Feb 4, 2026 00:223,77521,842,1272,215,0001,107,0002,494,464
8Feb 4, 2026 00:223,77726,060,0022,216,0001,108,0002,277,376
9Feb 4, 2026 00:223,83618,752,0592,251,0001,125,0002,277,376