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 06:22Robert BurkeRobert BurkeScore: 23,222Success
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 06:2219,65676,445,73317,297,55302,195,456
2Dec 28, 2022 06:2219,66772,295,95117,307,01102,207,744
3Dec 28, 2022 06:2219,77569,212,72717,402,12502,211,840
4Dec 28, 2022 06:2223,15939,955,32819,361,0001,019,0002,375,680
5Dec 28, 2022 06:2223,16039,879,85120,381,00002,375,680
6Dec 28, 2022 06:2223,21641,770,77720,430,00002,379,776
7Dec 28, 2022 06:2223,22245,527,42920,435,00002,281,472
8Dec 28, 2022 06:2223,22443,448,83119,416,0001,021,0002,383,872
9Dec 28, 2022 06:2223,25541,421,87319,441,0001,023,0002,375,680
10Dec 28, 2022 06:2223,25841,218,43519,444,0001,023,0002,379,776
11Dec 28, 2022 06:2223,32647,029,89118,475,0002,052,0002,371,584
12Dec 28, 2022 06:2223,33246,657,65819,506,0001,026,0002,281,472