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 20, 2026 13:52Dominique GarmierDominique GarmierScore: 15,055Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2026 13:5314,91436,973,21911,106,0002,019,0002,363,392
2Apr 20, 2026 13:5314,92632,877,34211,115,0002,020,0002,375,680
3Apr 20, 2026 13:5314,93835,956,52911,124,0002,022,0002,375,680
4Apr 20, 2026 13:5314,98227,800,68711,157,0002,028,0002,379,776
5Apr 20, 2026 13:5315,05531,959,13112,230,0001,019,0002,273,280
6Apr 20, 2026 13:5315,14231,160,34112,300,0001,025,0002,420,736
7Apr 20, 2026 13:5315,18433,065,47012,335,0001,027,0002,273,280
8Apr 20, 2026 13:5315,20631,056,91712,353,0001,029,0002,375,680
9Apr 20, 2026 13:5315,67632,475,89712,734,0001,061,0002,273,280