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 25, 2026 00:31olliecrowolliecrowScore: 175,281Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 25, 2026 00:31173,762166,855,698150,913,0001,998,0002,347,008stderr
2Apr 25, 2026 00:31174,430167,622,845151,506,0001,993,0002,359,296stderr
3Apr 25, 2026 00:31174,543168,986,392152,595,0001,003,0002,322,432stderr
4Apr 25, 2026 00:31174,701170,009,569151,741,0001,996,0002,351,104stderr
5Apr 25, 2026 00:31175,281171,680,437153,247,0001,001,0002,351,104stderr
6Apr 25, 2026 00:31175,587174,796,738153,514,0001,003,0002,342,912stderr
7Apr 25, 2026 00:31175,694174,132,838153,608,0001,003,0002,412,544stderr
8Apr 25, 2026 00:31176,131177,128,410152,016,0002,980,0002,322,432stderr
9Apr 25, 2026 00:31176,446176,823,911153,283,0001,990,0002,342,912stderr