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 24, 2026 07:35olliecrowolliecrowScore: 147,092Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 07:36146,678142,750,887123,074,0006,003,0002,400,256stderr
2Apr 24, 2026 07:36146,792146,280,392122,168,0007,009,0002,371,584stderr
3Apr 24, 2026 07:36146,936142,462,144122,288,0007,016,0002,412,544stderr
4Apr 24, 2026 07:36146,954150,576,063123,306,0006,014,0002,412,544stderr
5Apr 24, 2026 07:36147,092152,414,638124,424,0005,017,0002,363,392stderr
6Apr 24, 2026 07:36147,163143,127,862122,477,0007,027,0002,437,120stderr
7Apr 24, 2026 07:36147,362147,333,870124,653,0005,026,0002,424,832stderr
8Apr 24, 2026 07:36147,401147,869,803123,727,0005,986,0002,351,104stderr
9Apr 24, 2026 07:36147,938149,884,989125,179,0005,007,0002,416,640stderr