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:11Josu San MartinJosu San MartinScore: 35,658Success
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,49257,360,07730,226,0001,007,0002,367,488
2Jan 17, 2026 06:1135,50156,657,51030,234,0001,007,0002,523,136
3Jan 17, 2026 06:1135,57256,199,16330,294,0001,009,0002,457,600
4Jan 17, 2026 06:1135,59457,426,77830,313,0001,010,0002,289,664
5Jan 17, 2026 06:1135,60257,758,68030,320,0001,010,0002,445,312
6Jan 17, 2026 06:1435,60554,938,10030,322,0001,010,0002,289,664
7Jan 17, 2026 06:1435,64051,382,29130,352,0001,011,0002,514,944
8Jan 17, 2026 06:1135,65853,353,71530,367,0001,012,0002,338,816
9Jan 17, 2026 06:1135,66358,913,13330,371,0001,012,0002,453,504
10Jan 17, 2026 06:1135,67759,080,38331,396,00002,449,408
11Jan 17, 2026 06:1135,68452,079,81131,402,00002,457,600
12Jan 17, 2026 06:1135,69754,742,42130,400,0001,013,0002,445,312
13Jan 17, 2026 06:1135,70260,986,50831,418,00002,449,408
14Jan 17, 2026 06:1135,72556,776,90830,424,0001,014,0002,445,312
15Jan 17, 2026 06:1435,73159,917,97330,429,0001,014,0002,449,408