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 07:09Kenneth MaplesKenneth MaplesScore: 49,003Success
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 07:0945,569114,034,62840,100,55402,256,896
2Dec 23, 2023 07:0945,577118,272,86640,107,57602,256,896
3Dec 23, 2023 07:0945,616106,354,39540,142,05402,260,992
4Dec 23, 2023 07:0948,87464,977,01841,009,0002,000,0002,265,088
5Dec 23, 2023 07:0948,91665,309,55042,045,0001,001,0002,289,664
6Dec 23, 2023 07:0948,98369,963,31541,101,0002,004,0002,273,280
7Dec 23, 2023 07:0949,00368,964,16841,118,0002,005,0002,289,664
8Dec 23, 2023 07:0949,01966,042,38341,131,0002,006,0002,400,256
9Dec 23, 2023 07:0949,03572,985,24441,144,0002,007,0002,289,664
10Dec 23, 2023 07:0949,04865,767,88442,159,0001,003,0002,289,664
11Dec 23, 2023 07:0949,14766,262,32742,244,0001,005,0002,289,664
12Dec 23, 2023 07:0949,28365,707,11841,352,0002,017,0002,371,584