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 30, 2026 20:26olliecrowolliecrowError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 30, 2026 20:27026,571,0568,891,0001,975,0002,473,984expected "50948828436660 ", got "50948828436533 "
2Apr 30, 2026 20:2712,33226,889,9578,880,0001,973,0002,457,600
3Apr 30, 2026 20:2712,35326,312,5408,895,0001,976,0002,457,600
4Apr 30, 2026 20:2712,38428,443,2187,926,0002,972,0002,519,040
5Apr 30, 2026 20:2712,41834,519,5967,948,0002,980,0002,449,408
6Apr 30, 2026 20:2712,41932,338,8967,949,0002,980,0002,453,504
7Apr 30, 2026 20:2712,42127,675,5687,950,0002,981,0002,445,312
8Apr 30, 2026 20:2712,47926,520,5037,987,0002,995,0002,457,600
9Apr 30, 2026 20:2712,48526,255,4798,990,0001,997,0002,457,600