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 1, 2022 16:58apuxbtapuxbtScore: 31,113Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 1, 2022 16:5831,07849,249,33226,337,0001,012,0002,383,872
2Dec 1, 2022 16:5831,08349,681,57827,353,00002,379,776
3Dec 1, 2022 16:5831,08447,393,88427,354,00002,387,968
4Dec 1, 2022 16:5831,08552,128,56226,342,0001,013,0002,265,088
5Dec 1, 2022 16:5831,09149,736,81726,347,0001,013,0002,383,872
6Dec 1, 2022 16:5831,11354,227,22727,379,00002,265,088
7Dec 1, 2022 16:5831,11346,917,55926,365,0001,014,0002,523,136
8Dec 1, 2022 16:5831,12989,142,25927,393,80802,236,416
9Dec 1, 2022 16:5831,15749,911,70027,418,00002,265,088
10Dec 1, 2022 16:5831,27184,677,77427,518,63502,244,608
11Dec 1, 2022 16:5831,32353,851,05726,544,0001,020,0002,265,088
12Dec 1, 2022 16:5831,38293,426,91127,616,47902,232,320