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 19:58Kenneth MaplesKenneth MaplesScore: 46,352Success
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 19:5844,405110,075,26739,076,61202,240,512
2Dec 23, 2023 19:5844,427102,712,28339,095,65502,240,512
3Dec 23, 2023 19:5844,48099,139,87739,142,67402,244,608
4Dec 23, 2023 19:5846,23368,874,14039,668,0001,017,0002,375,680
5Dec 23, 2023 19:5846,27068,334,34139,701,0001,017,0002,383,872
6Dec 23, 2023 19:5846,30165,916,99039,727,0001,018,0002,265,088
7Dec 23, 2023 19:5846,35272,061,29739,771,0001,019,0002,265,088
8Dec 23, 2023 19:5846,45874,238,14538,889,0001,994,0002,265,088
9Dec 23, 2023 19:5846,46171,978,51840,886,00002,387,968
10Dec 23, 2023 19:5846,46365,433,89839,890,000997,0002,265,088
11Dec 23, 2023 19:5846,46366,358,88338,893,0001,994,0002,392,064
12Dec 23, 2023 19:5846,52769,064,38939,946,000998,0002,396,160