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 listApr 29, 2026 06:05olliecrowolliecrowScore: 19,743Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 06:0719,39825,196,52315,063,0002,008,0002,359,296
2Apr 29, 2026 06:0719,47825,123,85915,125,0002,016,0002,359,296
3Apr 29, 2026 06:0719,54033,251,99014,162,0003,034,0002,490,368
4Apr 29, 2026 06:0719,55125,302,09514,169,0003,036,0002,560,000
5Apr 29, 2026 06:0719,74325,290,74116,352,0001,022,0002,375,680
6Apr 29, 2026 06:0719,77925,288,82116,383,0001,023,0002,379,776
7Apr 29, 2026 06:0719,83425,353,62915,401,0002,053,0002,498,560
8Apr 29, 2026 06:0719,85125,364,63115,414,0002,055,0002,379,776
9Apr 29, 2026 06:0720,39724,942,13314,959,0002,991,0002,379,776