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 13, 2026 19:10vahookvahookScore: 5,002Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 13, 2026 19:074,93023,354,0433,254,0001,084,0002,498,560
2Jan 13, 2026 19:084,94825,452,7283,266,0001,088,0002,277,376
3Jan 13, 2026 19:064,96122,927,8313,275,0001,091,0002,498,560
4Jan 13, 2026 19:064,97320,052,9133,282,0001,094,0002,535,424
5Jan 13, 2026 19:084,97820,082,1493,286,0001,095,0002,498,560
6Jan 13, 2026 19:084,98322,133,9343,289,0001,096,0002,277,376
7Jan 13, 2026 19:084,98421,244,0193,290,0001,096,0002,494,464
8Jan 13, 2026 19:104,98919,490,3073,293,0001,097,0002,277,376
9Jan 13, 2026 19:064,99221,579,2963,295,0001,098,0002,535,424
10Jan 13, 2026 19:074,99826,856,0833,299,0001,099,0002,277,376
11Jan 13, 2026 19:075,00219,656,6773,302,0001,100,0002,498,560
12Jan 13, 2026 19:085,00218,373,7153,302,0001,100,0002,502,656
13Jan 13, 2026 19:075,00522,640,0063,303,0001,101,0002,535,424
14Jan 13, 2026 19:075,00524,506,0703,303,0001,101,0002,277,376
15Jan 13, 2026 19:085,00524,176,4493,303,0001,101,0002,277,376
16Jan 13, 2026 19:135,00921,614,4513,306,0001,102,0002,281,472
17Jan 13, 2026 19:135,01620,603,3643,311,0001,103,0002,494,464
18Jan 13, 2026 19:075,02018,058,0013,314,0001,104,0002,277,376
19Jan 13, 2026 19:135,03226,086,1603,321,0001,107,0002,494,464
20Jan 13, 2026 19:105,10124,312,9933,367,0001,122,0002,277,376
21Jan 13, 2026 19:105,10121,276,6203,367,0001,122,0002,494,464