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 12:55Johan SannemoJohan SannemoScore: 11,859Success
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 12:5511,69437,236,3018,233,0002,058,0002,347,008
2Jan 20, 2026 13:2111,72728,123,1197,224,0003,096,0002,285,568
3Jan 20, 2026 13:2111,73327,891,4858,260,0002,065,0002,355,200
4Jan 20, 2026 13:2111,73427,576,1238,261,0002,065,0002,289,664
5Jan 20, 2026 13:2111,79128,844,0288,301,0002,075,0002,285,568
6Jan 20, 2026 12:5511,82033,939,0188,322,0002,080,0002,285,568
7Jan 20, 2026 13:2111,83829,959,5148,334,0002,083,0002,289,664
8Jan 20, 2026 12:5511,85330,571,6499,388,0001,043,0002,453,504
9Jan 20, 2026 12:5511,85728,568,2197,304,0003,130,0002,285,568
10Jan 20, 2026 13:2111,85932,681,8389,393,0001,043,0002,392,064
11Jan 20, 2026 13:2111,86526,002,4677,309,0003,132,0002,482,176
12Jan 20, 2026 12:5511,88331,924,7699,412,0001,045,0002,289,664
13Jan 20, 2026 12:5511,89830,924,2138,376,0002,094,0002,289,664
14Jan 20, 2026 13:2111,95126,581,30610,517,00002,285,568
15Jan 20, 2026 12:5512,00132,478,01810,561,00002,347,008
16Jan 20, 2026 12:5512,01927,211,9288,462,0002,115,0002,285,568
17Jan 20, 2026 13:2112,04226,355,3878,478,0002,119,0002,289,664
18Jan 20, 2026 12:5512,09228,114,6459,577,0001,064,0002,420,736