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 14:26olliecrowolliecrowScore: 18,587Success
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 14:2718,48738,589,17115,253,0001,016,0002,281,472
2Apr 20, 2026 14:2718,52135,597,74315,281,0001,018,0002,289,664
3Apr 20, 2026 14:2718,55340,199,33815,307,0001,020,0002,293,760
4Apr 20, 2026 14:2718,58443,410,83715,332,0001,022,0002,293,760
5Apr 20, 2026 14:2718,58740,454,88215,335,0001,022,0002,301,952
6Apr 20, 2026 14:2718,60336,640,33315,348,0001,023,0002,281,472
7Apr 20, 2026 14:2718,61834,654,42215,360,0001,024,0002,265,088
8Apr 20, 2026 14:2718,67537,472,88415,407,0001,027,0002,281,472
9Apr 20, 2026 14:2718,91133,628,94415,602,0001,040,0002,281,472