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:11Dominique GarmierDominique GarmierScore: 10,523Success
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:1210,43527,789,4468,163,0001,020,0002,367,488
2Apr 28, 2026 12:1210,48930,530,4847,180,0002,051,0002,371,584
3Apr 28, 2026 12:1210,49528,693,7817,184,0002,052,0002,367,488
4Apr 28, 2026 12:1210,51424,899,2109,253,00002,424,832
5Apr 28, 2026 12:1210,52327,803,2828,232,0001,029,0002,363,392
6Apr 28, 2026 12:1210,52826,647,2468,236,0001,029,0002,433,024
7Apr 28, 2026 12:1210,53026,066,3609,267,00002,371,584
8Apr 28, 2026 12:1210,53127,067,7879,268,00002,318,336
9Apr 28, 2026 12:1210,58227,642,5178,279,0001,034,0002,375,680