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 24, 2023 01:24Kenneth MaplesKenneth MaplesScore: 23,341Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 24, 2023 01:2423,23045,098,25919,420,0001,022,0002,265,088
2Dec 24, 2023 01:2423,24538,320,80319,434,0001,022,0002,265,088
3Dec 24, 2023 01:2423,26442,725,44819,449,0001,023,0002,265,088
4Dec 24, 2023 01:2423,26942,377,54520,477,00002,392,064
5Dec 24, 2023 01:2423,27540,375,83919,458,0001,024,0002,265,088
6Dec 24, 2023 01:2423,33341,659,46819,507,0001,026,0002,265,088
7Dec 24, 2023 01:2423,34146,416,76320,540,00002,265,088
8Dec 24, 2023 01:2423,36644,149,05019,534,0001,028,0002,265,088
9Dec 24, 2023 01:2423,46448,230,84420,648,00002,392,064
10Dec 24, 2023 01:2424,05490,170,24821,167,26502,236,416
11Dec 24, 2023 01:2424,09481,708,35521,202,71602,232,320
12Dec 24, 2023 01:2424,12496,414,83121,229,27402,236,416