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 02:46Robert BurkeRobert BurkeScore: 18,924Success
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 02:4618,64477,790,16816,406,41202,228,224
2Dec 28, 2022 02:4618,81440,220,99416,556,00002,396,160
3Dec 28, 2022 02:4618,85134,781,46515,553,0001,036,0002,273,280
4Dec 28, 2022 02:4618,89740,647,44316,629,00002,396,160
5Dec 28, 2022 02:4618,90455,850,87616,635,10602,228,224
6Dec 28, 2022 02:4618,90941,083,91315,600,0001,040,0002,273,280
7Dec 28, 2022 02:4618,92441,491,84115,613,0001,040,0002,392,064
8Dec 28, 2022 02:4618,95031,503,00116,676,00002,375,680
9Dec 28, 2022 02:4618,99248,849,31915,669,0001,044,0002,506,752
10Dec 28, 2022 02:4619,06333,855,19815,727,0001,048,0002,392,064
11Dec 28, 2022 02:4619,07441,949,80216,785,00002,396,160
12Dec 28, 2022 02:4619,49969,500,98417,158,76502,215,936