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 06:10Josu San MartinJosu San MartinScore: 35,435Success
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 06:1135,28060,474,16730,045,0001,001,0002,297,856
2Jan 17, 2026 06:1035,33951,885,01129,092,0002,006,0002,457,600
3Jan 17, 2026 06:1135,34351,025,54730,099,0001,003,0002,449,408
4Jan 17, 2026 06:1035,38554,646,33329,130,0002,009,0002,453,504
5Jan 17, 2026 06:1135,39857,967,32530,146,0001,004,0002,285,568
6Jan 17, 2026 06:1135,40355,831,38429,145,0002,010,0002,289,664
7Jan 17, 2026 06:1135,41452,372,91829,154,0002,010,0002,285,568
8Jan 17, 2026 06:1035,41754,710,25930,162,0001,005,0002,457,600
9Jan 17, 2026 06:1435,42852,500,23229,166,0002,011,0002,289,664
10Jan 17, 2026 06:1035,43456,318,01829,171,0002,011,0002,371,584
11Jan 17, 2026 06:1435,43557,125,39029,172,0002,011,0002,449,408
12Jan 17, 2026 06:1135,51852,055,47729,240,0002,016,0002,441,216
13Jan 17, 2026 06:1135,55859,651,54730,282,0001,009,0002,457,600
14Jan 17, 2026 06:1035,56152,231,34530,285,0001,009,0002,449,408
15Jan 17, 2026 06:1135,56148,867,49230,285,0001,009,0002,453,504
16Jan 17, 2026 06:1035,58054,433,97129,290,0002,020,0002,445,312
17Jan 17, 2026 06:1135,61051,362,71630,327,0001,010,0002,285,568
18Jan 17, 2026 06:1435,61660,357,35630,331,0001,011,0002,445,312
19Jan 17, 2026 06:1035,61958,724,40029,323,0002,022,0002,285,568
20Jan 17, 2026 06:1035,66158,974,08830,370,0001,012,0002,367,488
21Jan 17, 2026 06:1035,67755,721,92930,384,0001,012,0002,453,504