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 29, 2026 19:18olliecrowolliecrowScore: 27,746Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 19:2827,30232,157,09921,023,0003,003,0002,379,776
2Apr 29, 2026 19:2827,40632,190,27321,104,0003,014,0002,363,392
3Apr 29, 2026 19:2827,46132,203,33422,153,0002,013,0002,379,776
4Apr 29, 2026 19:2827,53632,371,92623,223,0001,009,0002,379,776
5Apr 29, 2026 19:2827,74632,345,38623,400,0001,017,0002,379,776
6Apr 29, 2026 19:2827,79432,431,92523,440,0001,019,0002,375,680
7Apr 29, 2026 19:2827,83432,411,83823,474,0001,020,0002,469,888
8Apr 29, 2026 19:2827,83732,443,91922,456,0002,041,0002,379,776
9Apr 29, 2026 19:2827,89632,413,39822,504,0002,045,0002,359,296