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 24, 2026 21:06olliecrowolliecrowScore: 13,365Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 21:0713,15326,936,72510,523,0001,052,0002,326,528stderr
2Apr 24, 2026 21:0713,21033,090,44811,625,00002,326,528stderr
3Apr 24, 2026 21:0713,29430,233,87810,636,0001,063,0002,334,720stderr
4Apr 24, 2026 21:0713,30430,663,26210,644,0001,064,0002,338,816stderr
5Apr 24, 2026 21:0713,36533,634,21510,693,0001,069,0002,338,816stderr
6Apr 24, 2026 21:0713,44634,293,7059,861,0001,972,0002,347,008stderr
7Apr 24, 2026 21:0713,46233,900,34711,847,00002,338,816stderr
8Apr 24, 2026 21:0713,71829,101,16010,060,0002,012,0002,318,336stderr
9Apr 24, 2026 21:0714,02029,176,17411,310,0001,028,0002,342,912stderr