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 17, 2023 09:54Kenneth MaplesKenneth MaplesScore: 61,740Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 17, 2023 09:5454,822112,077,75748,243,77302,260,992
2Dec 17, 2023 09:5454,914103,775,10748,324,33902,260,992
3Dec 17, 2023 09:5454,934123,836,77948,341,78102,256,896
4Dec 17, 2023 09:5461,68278,215,36652,270,0002,010,0002,265,088
5Dec 17, 2023 09:5461,69375,308,79752,280,0002,010,0002,392,064
6Dec 17, 2023 09:5461,72577,208,37353,313,0001,005,0002,273,280
7Dec 17, 2023 09:5461,74075,638,09053,325,0001,006,0002,289,664
8Dec 17, 2023 09:5461,80379,041,87753,380,0001,007,0002,289,664
9Dec 17, 2023 09:5461,86685,124,42753,434,0001,008,0002,277,376
10Dec 17, 2023 09:5461,89377,408,16253,458,0001,008,0002,289,664
11Dec 17, 2023 09:5461,89875,066,56753,462,0001,008,0002,367,488
12Dec 17, 2023 09:5461,93179,737,03653,490,0001,009,0002,289,664