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 20:36Kenneth MaplesKenneth MaplesScore: 43,586Success
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 20:3643,129107,084,14637,953,39002,232,320
2Dec 23, 2023 20:3643,169113,944,79437,989,11302,236,416
3Dec 23, 2023 20:3643,174105,311,13337,993,24002,236,416
4Dec 23, 2023 20:3643,46570,652,48438,249,00002,396,160
5Dec 23, 2023 20:3643,52366,006,04337,293,0001,007,0002,265,088
6Dec 23, 2023 20:3643,57268,147,87237,334,0001,009,0002,265,088
7Dec 23, 2023 20:3643,58661,068,00138,356,00002,265,088
8Dec 23, 2023 20:3643,64266,866,11837,395,0001,010,0002,392,064
9Dec 23, 2023 20:3643,64364,052,67937,396,0001,010,0002,396,160
10Dec 23, 2023 20:3643,70063,927,29437,444,0001,012,0002,392,064
11Dec 23, 2023 20:3643,77266,609,20637,506,0001,013,0002,265,088
12Dec 23, 2023 20:3643,79861,439,08738,542,00002,392,064