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 28, 2026 12:17Dominique GarmierDominique GarmierScore: 10,406Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 28, 2026 12:1810,20323,079,4266,984,0001,995,0002,371,584
2Apr 28, 2026 12:1810,28930,075,2537,043,0002,012,0002,469,888
3Apr 28, 2026 12:1810,35527,378,9027,088,0002,025,0002,367,488
4Apr 28, 2026 12:1810,37326,313,3046,086,0003,043,0002,359,296
5Apr 28, 2026 12:1810,40629,198,1627,123,0002,035,0002,375,680
6Apr 28, 2026 12:1810,43129,976,3839,180,00002,383,872
7Apr 28, 2026 12:1810,44422,707,2148,170,0001,021,0002,375,680
8Apr 28, 2026 12:1810,46027,344,4987,160,0002,045,0002,367,488
9Apr 28, 2026 12:1810,47824,425,0917,172,0002,049,0002,363,392