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 listDec 1, 2022 06:30apuxbtapuxbtScore: 33,664Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 1, 2022 06:2832,81889,209,84228,879,98702,228,224
2Dec 1, 2022 06:3032,85791,479,90928,913,85802,236,416
3Dec 1, 2022 06:3032,947107,787,13328,993,43902,232,320
4Dec 1, 2022 06:2832,98085,952,64929,022,28702,224,128
5Dec 1, 2022 06:3033,012107,306,35529,050,82402,228,224
6Dec 1, 2022 06:2833,10986,333,67929,135,96902,228,224
7Dec 1, 2022 06:2833,44955,999,44028,420,0001,015,0002,510,848
8Dec 1, 2022 06:3033,58854,482,36529,557,00002,383,872
9Dec 1, 2022 06:2833,59355,673,16928,543,0001,019,0002,265,088
10Dec 1, 2022 06:2833,62849,538,70228,573,0001,020,0002,383,872
11Dec 1, 2022 06:2833,63252,097,89928,576,0001,020,0002,387,968
12Dec 1, 2022 06:2833,65157,185,21128,592,0001,021,0002,265,088
13Dec 1, 2022 06:3033,66451,352,40528,603,0001,021,0002,265,088
14Dec 1, 2022 06:2833,66554,979,19028,604,0001,021,0002,392,064
15Dec 1, 2022 06:3033,67653,036,14528,614,0001,021,0002,502,656
16Dec 1, 2022 06:3033,68052,457,84728,616,0001,022,0002,387,968
17Dec 1, 2022 06:3033,68254,037,06729,640,00002,265,088
18Dec 1, 2022 06:2833,73059,453,58229,682,00002,379,776
19Dec 1, 2022 06:2833,73659,210,44329,688,00002,383,872
20Dec 1, 2022 06:3033,74761,330,54829,697,00002,383,872
21Dec 1, 2022 06:3033,75258,095,58929,702,00002,265,088
22Dec 1, 2022 06:3033,75561,552,64529,704,00002,379,776
23Dec 1, 2022 06:3033,76951,886,68228,693,0001,024,0002,383,872
24Dec 1, 2022 06:2833,83560,965,89828,749,0001,026,0002,387,968