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 07:54apuxbtapuxbtScore: 31,063Success
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 16:5930,40553,134,71525,727,0001,029,0002,265,088
2Dec 1, 2022 16:5930,44455,396,69525,761,0001,030,0002,265,088
3Dec 1, 2022 16:5930,57256,437,17524,911,0001,992,0002,265,088
4Dec 1, 2022 16:5930,57252,202,93224,911,0001,992,0002,265,088
5Dec 1, 2022 16:5930,61652,768,93524,947,0001,995,0002,383,872
6Dec 1, 2022 16:5930,62255,431,32425,949,000998,0002,379,776
7Dec 1, 2022 16:5930,628105,913,55426,952,81702,244,608
8Dec 1, 2022 16:5930,63154,130,49824,959,0001,996,0002,265,088
9Dec 1, 2022 16:5930,66455,794,59625,985,000999,0002,269,184
10Dec 1, 2022 16:5930,70157,432,08625,016,0002,001,0002,265,088
11Dec 1, 2022 16:5930,80098,496,89527,103,61102,236,416
12Dec 1, 2022 16:5930,904103,496,63927,195,60702,236,416
13Dec 1, 2022 07:5431,06355,819,70525,311,0002,024,0002,289,664
14Dec 1, 2022 07:5431,10352,682,79026,358,0001,013,0002,289,664
15Dec 1, 2022 07:5431,19548,957,56626,436,0001,016,0002,523,136
16Dec 1, 2022 07:5431,21453,372,87827,468,00002,289,664
17Dec 1, 2022 07:5431,22451,090,49927,477,00002,269,184
18Dec 1, 2022 07:5431,23555,720,29526,469,0001,018,0002,265,088
19Dec 1, 2022 07:5431,25151,797,02526,483,0001,018,0002,527,232
20Dec 1, 2022 07:5431,29752,732,60526,521,0001,020,0002,265,088
21Dec 1, 2022 07:5431,33652,990,90826,555,0001,021,0002,371,584
22Dec 1, 2022 07:5431,34599,425,31727,583,37502,248,704
23Dec 1, 2022 07:5431,369101,321,65627,604,63102,252,800
24Dec 1, 2022 07:5431,446120,744,43527,672,77902,248,704