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 28, 2026 12:09Dominique GarmierDominique GarmierScore: 10,489Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 28, 2026 12:1010,30026,260,1176,043,0003,021,0002,375,680
2Apr 28, 2026 12:1010,32629,024,0177,068,0002,019,0002,379,776
3Apr 28, 2026 12:1010,40128,825,0818,136,0001,017,0002,379,776
4Apr 28, 2026 12:1010,40326,682,1728,138,0001,017,0002,367,488
5Apr 28, 2026 12:1010,48927,584,5758,206,0001,025,0002,371,584
6Apr 28, 2026 12:1010,53430,545,9688,240,0001,030,0002,363,392
7Apr 28, 2026 12:1010,58022,818,0038,277,0001,034,0002,375,680
8Apr 28, 2026 12:1010,60023,814,4388,292,0001,036,0002,363,392
9Apr 28, 2026 12:1010,66128,469,1938,340,0001,042,0002,367,488