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 03:21olliecrowolliecrowScore: 198,022Success
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 03:22196,812190,147,025168,190,0005,005,0002,359,296stderr
2Apr 25, 2026 03:22197,267193,006,082169,582,0004,013,0002,379,776stderr
3Apr 25, 2026 03:22197,462195,418,320166,777,0006,990,0002,404,352stderr
4Apr 25, 2026 03:22198,002196,218,445168,234,0006,008,0002,412,544stderr
5Apr 25, 2026 03:22198,022191,643,255167,250,0007,010,0002,584,576stderr
6Apr 25, 2026 03:22198,215194,810,622167,413,0007,017,0002,416,640stderr
7Apr 25, 2026 03:22198,268188,340,292169,463,0005,013,0002,416,640stderr
8Apr 25, 2026 03:22198,412192,012,371168,583,0006,020,0002,473,984stderr
9Apr 25, 2026 03:22198,622193,248,514169,795,0004,993,0002,408,448stderr