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 listJan 25, 2026 01:15zielajzielajScore: 3,501Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 25, 2026 01:143,36321,631,0231,973,000986,0002,355,200
2Jan 25, 2026 01:143,40020,600,1571,995,000997,0002,363,392
3Jan 25, 2026 01:143,46524,752,3332,033,0001,016,0002,363,392
4Jan 25, 2026 01:153,50125,780,0702,054,0001,027,0002,355,200
5Jan 25, 2026 01:153,82020,708,8843,362,00002,351,104
6Jan 25, 2026 01:154,28321,090,5853,769,00002,535,424