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:32Kenneth MaplesKenneth MaplesScore: 36,717Success
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:3236,58259,293,24030,180,0002,012,0002,269,184
2Dec 23, 2023 20:3236,61163,719,58230,205,0002,013,0002,383,872
3Dec 23, 2023 20:3236,62856,755,70630,219,0002,014,0002,375,680
4Dec 23, 2023 20:3236,66559,646,98030,249,0002,016,0002,265,088
5Dec 23, 2023 20:3236,66959,219,97831,261,0001,008,0002,265,088
6Dec 23, 2023 20:3236,68059,630,63231,270,0001,008,0002,265,088
7Dec 23, 2023 20:3236,71763,209,36231,302,0001,009,0002,527,232
8Dec 23, 2023 20:3236,72057,902,40930,295,0002,019,0002,392,064
9Dec 23, 2023 20:3236,79357,525,57831,367,0001,011,0002,387,968
10Dec 23, 2023 20:3236,951120,014,13432,517,14502,232,320
11Dec 23, 2023 20:3236,98298,293,26732,543,88702,228,224
12Dec 23, 2023 20:3237,036106,429,40632,591,93702,232,320