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 18, 2026 20:56mgildermgilderScore: 78,761Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 18, 2026 20:5678,291101,189,80767,898,000998,0002,371,584
2Jan 18, 2026 20:5678,539102,144,25267,111,0002,003,0002,359,296
3Jan 18, 2026 20:5678,54491,944,80367,116,0002,003,0002,355,200
4Jan 18, 2026 20:5678,71889,671,67268,269,0001,003,0002,355,200
5Jan 18, 2026 20:5678,76193,328,36168,306,0001,004,0002,289,664
6Jan 18, 2026 20:5678,81889,654,33668,355,0001,005,0002,363,392
7Jan 18, 2026 20:5679,00196,471,94668,514,0001,007,0002,347,008
8Jan 18, 2026 20:5679,00696,953,34269,525,00002,363,392
9Jan 18, 2026 20:5679,164100,272,77168,655,0001,009,0002,289,664