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 17, 2026 15:02Josu San MartinJosu San MartinScore: 24,177Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 17, 2026 14:5824,03942,817,61420,147,0001,007,0002,494,464
2Jan 17, 2026 15:0224,13053,742,87819,212,0002,022,0002,424,832
3Jan 17, 2026 14:5824,13842,120,45420,230,0001,011,0002,449,408
4Jan 17, 2026 15:0224,15243,098,84221,254,00002,453,504
5Jan 17, 2026 14:5824,16642,740,00720,254,0001,012,0002,453,504
6Jan 17, 2026 14:5824,16834,634,39820,256,0001,012,0002,281,472
7Jan 17, 2026 14:5824,17443,365,67820,260,0001,013,0002,490,368
8Jan 17, 2026 14:5824,17455,561,74620,260,0001,013,0002,355,200
9Jan 17, 2026 15:0224,17643,577,00220,262,0001,013,0002,289,664
10Jan 17, 2026 15:0224,17747,373,65020,263,0001,013,0002,449,408
11Jan 17, 2026 15:0224,18337,358,36320,268,0001,013,0002,424,832
12Jan 17, 2026 14:5824,21447,450,68820,294,0001,014,0002,449,408
13Jan 17, 2026 14:5824,22245,333,68921,315,00002,285,568
14Jan 17, 2026 15:0224,24942,333,13420,323,0001,016,0002,277,376
15Jan 17, 2026 14:5824,25050,583,17420,324,0001,016,0002,424,832
16Jan 17, 2026 15:0224,25648,380,51020,329,0001,016,0002,449,408
17Jan 17, 2026 15:0224,28342,685,71320,352,0001,017,0002,428,928
18Jan 17, 2026 15:0224,30544,839,82821,388,00002,428,928