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 10:26Kenneth MaplesKenneth MaplesScore: 57,280Success
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 10:2655,562115,923,62548,894,23102,252,800
2Dec 23, 2023 10:2655,761105,901,37749,069,99802,260,992
3Dec 23, 2023 10:2655,783111,544,69249,089,05402,252,800
4Dec 23, 2023 10:2657,03070,238,11049,183,0001,003,0002,375,680
5Dec 23, 2023 10:2657,06975,926,36748,213,0002,008,0002,281,472
6Dec 23, 2023 10:2657,24271,231,01649,366,0001,007,0002,277,376
7Dec 23, 2023 10:2657,28077,032,96249,398,0001,008,0002,289,664
8Dec 23, 2023 10:2657,36772,433,03049,474,0001,009,0002,375,680
9Dec 23, 2023 10:2657,38877,217,61549,491,0001,010,0002,289,664
10Dec 23, 2023 10:2657,39073,513,42349,493,0001,010,0002,289,664
11Dec 23, 2023 10:2657,40072,680,21249,502,0001,010,0002,289,664
12Dec 23, 2023 10:2657,82779,611,72049,891,000997,0002,281,472