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 18, 2026 23:29Dominique GarmierDominique GarmierScore: 8,486,643Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 18, 2026 23:298,375,7527,403,693,3927,323,716,00046,946,0002,265,088
2Mar 18, 2026 23:298,486,6437,500,392,6867,421,308,00046,938,0002,265,088
3Mar 18, 2026 23:298,506,1427,516,359,0497,436,468,00048,937,0002,514,944