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 19, 2026 02:26Charles CabergsCharles CabergsScore: 25,868Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 19, 2026 02:2625,78439,579,41921,659,0001,031,0002,277,376
2Apr 19, 2026 02:2625,78850,784,62821,662,0001,031,0002,281,472
3Apr 19, 2026 02:2625,82249,108,69521,691,0001,032,0002,289,664
4Apr 19, 2026 02:2625,83049,618,30021,697,0001,033,0002,277,376
5Apr 19, 2026 02:2625,86850,401,37720,695,0002,069,0002,281,472
6Apr 19, 2026 02:2625,90152,275,95022,793,00002,285,568
7Apr 19, 2026 02:2625,90252,941,33721,758,0001,036,0002,277,376
8Apr 19, 2026 02:2626,02647,780,08420,912,0001,991,0002,441,216
9Apr 19, 2026 02:2626,03947,045,10620,922,0001,992,0002,277,376