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 19, 2026 22:03Johan SannemoJohan SannemoScore: 31,557Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 19, 2026 22:0331,33355,217,96526,552,0001,021,0002,281,472
2Jan 19, 2026 22:0331,47759,417,68426,675,0001,025,0002,281,472
3Jan 19, 2026 22:0331,48653,947,87326,682,0001,026,0002,281,472
4Jan 19, 2026 22:0331,53156,584,85526,720,0001,027,0002,510,848
5Jan 19, 2026 22:0331,55753,664,00526,742,0001,028,0002,527,232
6Jan 19, 2026 22:0331,56155,086,19126,746,0001,028,0002,281,472
7Jan 19, 2026 22:0331,56756,663,69926,751,0001,028,0002,277,376
8Jan 19, 2026 22:0331,70357,207,84926,903,000996,0002,523,136
9Jan 19, 2026 22:0331,70954,103,42627,904,00002,281,472