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 16:57apuxbtapuxbtScore: 30,983Success
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:5730,85355,612,26426,146,0001,005,0002,375,680
2Dec 1, 2022 16:5730,85955,854,43425,145,0002,011,0002,265,088
3Dec 1, 2022 16:5730,86457,733,85725,149,0002,011,0002,265,088
4Dec 1, 2022 16:5730,96050,935,81826,236,0001,009,0002,265,088
5Dec 1, 2022 16:5730,97549,929,53927,258,00002,379,776
6Dec 1, 2022 16:5730,98153,688,26826,254,0001,009,0002,265,088
7Dec 1, 2022 16:5730,98352,952,06125,246,0002,019,0002,265,088
8Dec 1, 2022 16:5731,03850,154,86526,302,0001,011,0002,387,968
9Dec 1, 2022 16:5731,13560,668,99626,385,0001,014,0002,387,968
10Dec 1, 2022 16:5731,403104,328,39127,634,42002,236,416
11Dec 1, 2022 16:5731,408102,380,25827,638,68402,224,128
12Dec 1, 2022 16:5731,445104,238,47327,671,28502,236,416