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 listJan 17, 2026 05:29Josu San MartinJosu San MartinScore: 44,638Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 17, 2026 05:2944,36861,460,76237,042,0002,002,0002,281,472
2Jan 17, 2026 05:2944,39260,197,72737,062,0002,003,0002,449,408
3Jan 17, 2026 05:2944,53166,383,00738,183,0001,004,0002,445,312
4Jan 17, 2026 05:2944,59062,231,34839,239,00002,527,232
5Jan 17, 2026 05:2944,63864,139,55138,274,0001,007,0002,281,472
6Jan 17, 2026 05:2944,64264,270,35138,278,0001,007,0002,445,312
7Jan 17, 2026 05:2944,66965,521,66138,302,0001,007,0002,445,312
8Jan 17, 2026 05:2944,74160,077,78638,363,0001,009,0002,445,312
9Jan 17, 2026 05:2944,82464,152,77538,434,0001,011,0002,445,312