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 listMar 19, 2026 23:28olliecrowolliecrowScore: 17,569Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 19, 2026 23:2817,44036,038,18715,347,00002,260,992
2Mar 19, 2026 23:2817,46538,150,85715,369,00002,506,752
3Mar 19, 2026 23:2817,53326,475,24514,401,0001,028,0002,506,752
4Mar 19, 2026 23:2817,53629,485,29115,432,00002,490,368
5Mar 19, 2026 23:2817,56941,635,71515,461,00002,514,944
6Mar 19, 2026 23:2817,58933,857,66714,447,0001,031,0002,506,752
7Mar 19, 2026 23:2817,61437,309,08015,500,00002,506,752
8Mar 19, 2026 23:2817,61432,318,68215,500,00002,506,752
9Mar 19, 2026 23:2817,66835,155,02915,548,00002,387,968