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 16, 2026 20:44olliecrowolliecrowScore: 18,510Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 20, 2026 16:5618,44340,958,89714,202,0002,028,0002,514,944
2Apr 16, 2026 20:4418,46134,894,37113,200,0003,046,0002,539,520
3Mar 20, 2026 16:5618,46938,396,13215,238,0001,015,0002,506,752
4Mar 20, 2026 16:5618,51029,977,83414,253,0002,036,0002,478,080
5Apr 16, 2026 20:4418,53443,205,32013,252,0003,058,0002,478,080
6Apr 16, 2026 20:4418,56444,877,21513,273,0003,063,0002,359,296