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 20, 2024 05:57zielajzielajScore: 4,459Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 20, 2024 05:574,41518,270,3522,914,000971,0002,265,088
2Dec 20, 2024 05:574,44518,073,5381,956,0001,956,0002,510,848
3Dec 20, 2024 05:574,45218,160,7451,959,0001,959,0002,531,328
4Dec 20, 2024 05:574,45722,964,5901,961,0001,961,0002,535,424
5Dec 20, 2024 05:574,45920,117,0292,943,000981,0002,265,088
6Dec 20, 2024 05:574,52321,629,9091,990,0001,990,0002,277,376
7Dec 20, 2024 05:574,52728,567,3712,988,000996,0002,273,280
8Dec 20, 2024 05:574,53619,392,5891,996,0001,996,0002,527,232
9Dec 20, 2024 05:574,60920,690,9383,042,0001,014,0002,535,424