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 29, 2026 11:25Dominique GarmierDominique GarmierScore: 10,271Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 11:2610,19227,476,4496,976,0001,993,0002,367,488
2Apr 29, 2026 11:2610,22523,513,6146,999,0001,999,0002,367,488
3Apr 29, 2026 11:2610,22931,056,8607,002,0002,000,0002,375,680
4Apr 29, 2026 11:2610,26328,618,4357,025,0002,007,0002,318,336
5Apr 29, 2026 11:2610,27124,963,4467,031,0002,008,0002,367,488
6Apr 29, 2026 11:2610,27127,718,3776,026,0003,013,0002,363,392
7Apr 29, 2026 11:2610,34626,381,7467,082,0002,023,0002,363,392
8Apr 29, 2026 11:2610,35128,884,2397,085,0002,024,0002,375,680
9Apr 29, 2026 11:2610,37826,367,0177,104,0002,029,0002,367,488