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 15:42Johan SannemoJohan SannemoScore: 9,170Success
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 15:449,06725,966,9144,987,0002,992,0002,469,888
2Jan 20, 2026 15:429,08225,242,1914,995,0002,997,0002,514,944
3Jan 20, 2026 15:429,08624,384,9815,997,0001,999,0002,285,568
4Jan 20, 2026 15:449,09125,104,7606,000,0002,000,0002,465,792
5Jan 20, 2026 15:429,09328,266,3185,001,0003,001,0002,281,472
6Jan 20, 2026 15:449,11126,463,6686,014,0002,004,0002,502,656
7Jan 20, 2026 15:429,13929,322,2806,032,0002,010,0002,502,656
8Jan 20, 2026 15:449,15522,000,2626,042,0002,014,0002,285,568
9Jan 20, 2026 15:449,16430,229,2205,040,0003,024,0002,281,472
10Jan 20, 2026 15:429,17020,286,6776,053,0002,017,0002,330,624
11Jan 20, 2026 15:449,17425,348,5306,055,0002,018,0002,322,432
12Jan 20, 2026 15:449,17625,323,6265,047,0003,028,0002,498,560
13Jan 20, 2026 15:429,18923,704,5215,054,0003,032,0002,285,568
14Jan 20, 2026 15:449,22228,805,8185,072,0003,043,0002,285,568
15Jan 20, 2026 15:429,24828,433,7466,104,0002,034,0002,285,568
16Jan 20, 2026 15:429,27827,449,8156,124,0002,041,0002,293,760
17Jan 20, 2026 15:449,28624,564,6126,129,0002,043,0002,281,472
18Jan 20, 2026 15:429,31623,848,6886,149,0002,049,0002,285,568