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 20, 2026 10:35Johan SannemoJohan SannemoScore: 17,216Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 20, 2026 10:3517,10035,459,73913,042,0002,006,0002,359,296
2Jan 20, 2026 10:3617,15531,591,80314,090,0001,006,0002,363,392
3Jan 20, 2026 10:3617,17530,052,68713,099,0002,015,0002,355,200
4Jan 20, 2026 10:3517,21631,132,22112,120,0003,030,0002,367,488
5Jan 20, 2026 10:3517,23532,114,60214,156,0001,011,0002,424,832
6Jan 20, 2026 10:3617,33931,267,18314,241,0001,017,0002,359,296