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 listJul 31, 2022 15:30Robert BurkeRobert BurkeScore: 36,473Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 31, 2022 15:3036,07490,894,97831,744,75402,285,568
2Jul 31, 2022 15:3536,12987,839,29731,793,60502,293,760
3Jul 31, 2022 15:3536,15199,960,61231,812,68602,289,664
4Jul 31, 2022 15:3036,18991,507,97631,845,97802,281,472
5Jul 31, 2022 15:3036,314101,298,41831,956,33502,277,376
6Jul 31, 2022 15:3036,31956,413,03629,964,0001,997,0002,281,472
7Jul 31, 2022 15:3536,34392,581,05431,982,11802,293,760
8Jul 31, 2022 15:3536,37651,207,09030,011,0002,000,0002,535,424
9Jul 31, 2022 15:3536,40751,925,18231,037,0001,001,0002,445,312
10Jul 31, 2022 15:3536,40755,618,67429,035,0003,003,0002,441,216
11Jul 31, 2022 15:3536,42458,376,19631,052,0001,001,0002,273,280
12Jul 31, 2022 15:3036,43452,886,12331,061,0001,001,0002,297,856
13Jul 31, 2022 15:3036,47353,729,59331,093,0001,003,0002,510,848
14Jul 31, 2022 15:3536,49257,117,73931,110,0001,003,0002,535,424
15Jul 31, 2022 15:3536,51353,059,21330,123,0002,008,0002,445,312
16Jul 31, 2022 15:3036,52054,127,04930,130,0002,008,0002,334,720
17Jul 31, 2022 15:3536,53255,769,34529,135,0003,013,0002,441,216
18Jul 31, 2022 15:3036,58456,125,77131,188,0001,006,0002,273,280
19Jul 31, 2022 15:3536,61153,482,34931,212,0001,006,0002,445,312
20Jul 31, 2022 15:3036,87353,516,81731,434,0001,014,0002,273,280
21Jul 31, 2022 15:3036,88256,444,25132,456,00002,273,280
22Jul 31, 2022 15:3036,90057,349,04432,472,00002,453,504
23Jul 31, 2022 15:3036,91952,231,10032,489,00002,273,280
24Jul 31, 2022 15:3537,02258,590,47431,561,0001,018,0002,449,408