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:37Kenneth MaplesKenneth MaplesScore: 24,093Success
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:3723,93940,884,43319,060,0002,006,0002,392,064
2Dec 23, 2023 20:3723,95050,197,45919,069,0002,007,0002,265,088
3Dec 23, 2023 20:3724,01749,295,33820,129,0001,006,0002,260,992
4Dec 23, 2023 20:3724,04346,875,87419,143,0002,015,0002,392,064
5Dec 23, 2023 20:3724,04442,391,86419,144,0002,015,0002,392,064
6Dec 23, 2023 20:3724,05947,380,21919,156,0002,016,0002,392,064
7Dec 23, 2023 20:3724,09346,999,20119,183,0002,019,0002,265,088
8Dec 23, 2023 20:3724,12449,154,37320,219,0001,010,0002,265,088
9Dec 23, 2023 20:3724,18249,847,14220,267,0001,013,0002,383,872
10Dec 23, 2023 20:3724,21884,384,11821,311,81102,236,416
11Dec 23, 2023 20:3724,36291,252,98821,438,30602,240,512
12Dec 23, 2023 20:3724,409103,343,12821,480,27102,240,512