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:19Dominique GarmierDominique GarmierScore: 10,356Success
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:2010,30323,233,4417,052,0002,015,0002,375,680
2Apr 28, 2026 12:2010,34227,797,9807,079,0002,022,0002,359,296
3Apr 28, 2026 12:2010,35030,345,6926,072,0003,036,0002,371,584
4Apr 28, 2026 12:2010,35321,836,5837,087,0002,024,0002,359,296
5Apr 28, 2026 12:2010,35622,407,9117,089,0002,025,0002,420,736
6Apr 28, 2026 12:2010,36225,477,9087,093,0002,026,0002,363,392
7Apr 28, 2026 12:2010,44329,595,6087,148,0002,042,0002,359,296
8Apr 28, 2026 12:2010,45625,193,1558,180,0001,022,0002,326,528
9Apr 28, 2026 12:2010,50626,294,3657,192,0002,054,0002,363,392