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 listJan 18, 2026 05:21Josu San MartinJosu San MartinScore: 11,433Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 18, 2026 05:2111,18025,218,9898,745,0001,093,0002,514,944
2Jan 18, 2026 05:2211,26723,515,6778,924,000991,0002,383,872
3Jan 18, 2026 05:2211,27027,588,4148,927,000991,0002,273,280
4Jan 18, 2026 05:2111,43326,773,8689,055,0001,006,0002,281,472
5Jan 18, 2026 05:2111,44924,726,3169,068,0001,007,0002,281,472
6Jan 18, 2026 05:2211,51925,603,1318,110,0002,027,0002,281,472