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 listAug 3, 2022 14:38Robert BurkeRobert BurkeScore: 36,836Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 3, 2022 14:3835,543103,674,79831,278,24802,224,128
2Aug 3, 2022 14:3835,610106,190,88831,336,61202,236,416
3Aug 3, 2022 14:3835,61987,053,14231,344,99602,224,128
4Aug 3, 2022 14:3836,52858,787,73431,141,0001,004,0002,392,064
5Aug 3, 2022 14:3836,66953,302,41231,261,0001,008,0002,392,064
6Aug 3, 2022 14:3836,77653,651,47732,363,00002,535,424
7Aug 3, 2022 14:3836,83652,852,30232,416,00002,535,424
8Aug 3, 2022 14:3836,88351,021,36831,443,0001,014,0002,392,064
9Aug 3, 2022 14:3836,92854,801,80332,497,00002,396,160
10Aug 3, 2022 14:3836,95754,773,50832,522,00002,400,256
11Aug 3, 2022 14:3836,97253,508,32632,535,00002,535,424
12Aug 3, 2022 14:3837,12453,240,98032,669,00002,400,256