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 23, 2023 06:58Kenneth MaplesKenneth MaplesScore: 56,344Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 23, 2023 06:5849,558109,605,42243,611,27502,256,896
2Dec 23, 2023 06:5849,634115,177,87443,678,30202,252,800
3Dec 23, 2023 06:5849,853123,233,44743,870,54302,256,896
4Dec 23, 2023 06:5856,24973,647,48948,489,0001,010,0002,289,664
5Dec 23, 2023 06:5856,29171,606,86748,526,0001,010,0002,289,664
6Dec 23, 2023 06:5856,32471,630,06849,565,00002,289,664
7Dec 23, 2023 06:5856,34472,364,28748,572,0001,011,0002,273,280
8Dec 23, 2023 06:5856,45676,380,88749,681,00002,269,184
9Dec 23, 2023 06:5856,52077,014,42148,723,0001,015,0002,289,664
10Dec 23, 2023 06:5856,52681,935,20449,743,00002,289,664
11Dec 23, 2023 06:5856,54379,907,59848,743,0001,015,0002,289,664
12Dec 23, 2023 06:5856,56979,665,73847,790,0001,991,0002,273,280