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 22:12olliecrowolliecrowScore: 12,803Success
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 22:1312,62526,535,8088,080,0003,030,0002,310,144
2Apr 24, 2026 22:1312,75626,262,28710,206,0001,020,0002,314,240
3Apr 24, 2026 22:1312,75629,062,2719,185,0002,041,0002,572,288
4Apr 24, 2026 22:1312,79830,396,38411,263,00002,301,952
5Apr 24, 2026 22:1312,80329,580,84711,267,00002,314,240
6Apr 24, 2026 22:1312,81433,666,59010,252,0001,025,0002,301,952
7Apr 24, 2026 22:1312,85025,392,19610,280,0001,028,0002,576,384
8Apr 24, 2026 22:1312,93729,517,98010,350,0001,035,0002,297,856
9Apr 24, 2026 22:1312,97931,928,01910,384,0001,038,0002,301,952