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 26, 2026 04:34olliecrowolliecrowScore: 13,736Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 26, 2026 04:3513,20928,941,36610,568,0001,056,0002,334,720
2Apr 26, 2026 04:3513,24429,310,99010,596,0001,059,0002,338,816
3Apr 26, 2026 04:3513,25628,712,35610,606,0001,060,0002,334,720
4Apr 26, 2026 04:3513,26230,313,13610,610,0001,061,0002,330,624
5Apr 26, 2026 04:3513,73628,245,82710,074,0002,014,0002,342,912
6Apr 26, 2026 04:3514,70232,539,54010,948,0001,990,0002,318,336
7Apr 26, 2026 04:3514,78436,475,15111,009,0002,001,0002,326,528
8Apr 26, 2026 04:3515,40234,044,19612,512,0001,042,0002,334,720
9Apr 26, 2026 04:3515,40926,560,13412,517,0001,043,0002,330,624