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 28, 2022 05:00Robert BurkeRobert BurkeScore: 18,795Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2022 04:5918,57331,072,30615,323,0001,021,0002,490,368
2Dec 28, 2022 04:5918,61547,100,32215,358,0001,023,0002,396,160
3Dec 28, 2022 04:5918,67442,372,77515,406,0001,027,0002,396,160
4Dec 28, 2022 05:0018,68437,002,28516,442,00002,400,256
5Dec 28, 2022 04:5918,69234,328,49716,449,00002,387,968
6Dec 28, 2022 05:0018,70633,580,85416,461,00002,396,160
7Dec 28, 2022 04:5918,71940,078,86216,473,00002,273,280
8Dec 28, 2022 04:5918,72432,432,68815,448,0001,029,0002,392,064
9Dec 28, 2022 05:0018,75937,108,76815,477,0001,031,0002,396,160
10Dec 28, 2022 05:0018,76441,780,72115,480,0001,032,0002,387,968
11Dec 28, 2022 05:0018,77832,807,57815,493,0001,032,0002,273,280
12Dec 28, 2022 05:0018,78838,720,54115,500,0001,033,0002,383,872
13Dec 28, 2022 05:0018,79534,034,93516,540,00002,490,368
14Dec 28, 2022 04:5918,80938,918,09015,518,0001,034,0002,392,064
15Dec 28, 2022 05:0018,81039,435,50316,553,00002,273,280
16Dec 28, 2022 05:0018,82538,209,11616,566,00002,535,424
17Dec 28, 2022 04:5918,87041,039,59814,531,0002,075,0002,273,280
18Dec 28, 2022 04:5918,87536,196,85314,534,0002,076,0002,383,872
19Dec 28, 2022 05:0019,13269,160,66016,836,46902,228,224
20Dec 28, 2022 04:5919,17167,837,65416,870,83602,228,224
21Dec 28, 2022 05:0019,23774,213,61716,928,45802,232,320
22Dec 28, 2022 05:0019,25671,751,47416,945,53802,232,320
23Dec 28, 2022 04:5919,29178,225,65416,976,05202,220,032
24Dec 28, 2022 04:5919,32994,014,75317,009,56702,236,416