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 24, 2026 01:31Charles CabergsCharles CabergsScore: 24,552Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 01:3224,40642,079,44320,456,0001,022,0002,441,216
2Apr 24, 2026 01:3224,44839,176,74820,491,0001,024,0002,437,120
3Apr 24, 2026 01:3224,48041,033,62820,518,0001,025,0002,392,064
4Apr 24, 2026 01:3224,54740,322,32720,574,0001,028,0002,441,216
5Apr 24, 2026 01:3224,55237,313,30120,578,0001,028,0002,441,216
6Apr 24, 2026 01:3224,71838,559,85620,717,0001,035,0002,383,872
7Apr 24, 2026 01:3224,92535,935,20119,940,0001,994,0002,428,928
8Apr 24, 2026 01:3224,97837,733,10519,888,0002,093,0002,437,120
9Apr 24, 2026 01:3225,08843,914,12920,071,0002,007,0002,293,760