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:58olliecrowolliecrowScore: 117,671Success
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:59117,306122,315,650101,245,0001,985,0002,371,584stderr
2Apr 25, 2026 03:59117,346116,857,975102,263,0001,002,0002,310,144stderr
3Apr 25, 2026 03:59117,463117,864,542102,365,0001,003,0002,310,144stderr
4Apr 25, 2026 03:59117,577119,493,834102,464,0001,004,0002,371,584stderr
5Apr 25, 2026 03:59117,671118,962,986102,546,0001,005,0002,441,216stderr
6Apr 25, 2026 03:59117,672123,758,105102,547,0001,005,0002,375,680stderr
7Apr 25, 2026 03:59117,720123,009,048102,589,0001,005,0002,359,296stderr
8Apr 25, 2026 03:59117,817127,214,436102,673,0001,006,0002,367,488stderr
9Apr 25, 2026 03:59118,035128,121,905101,874,0001,997,0002,375,680stderr