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 06:47olliecrowolliecrowScore: 12,802Success
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 06:4812,75729,083,32310,207,0001,020,0002,306,048
2Apr 25, 2026 06:4812,76533,946,25310,213,0001,021,0002,306,048
3Apr 25, 2026 06:4812,77527,673,54910,220,0001,022,0002,342,912
4Apr 25, 2026 06:4812,79733,676,13910,239,0001,023,0002,396,160
5Apr 25, 2026 06:4812,80232,687,88310,242,0001,024,0002,301,952
6Apr 25, 2026 06:4812,80726,615,00610,247,0001,024,0002,342,912
7Apr 25, 2026 06:4812,90927,411,52510,328,0001,032,0002,555,904
8Apr 25, 2026 06:4812,92527,720,51410,340,0001,034,0002,297,856
9Apr 25, 2026 06:4812,93528,227,81210,349,0001,034,0002,560,000