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 11, 2023 09:30Oleg KovalovOleg KovalovScore: 19,273,209Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 11, 2023 09:3019,192,38316,961,137,17716,889,297,25702,240,512
2Dec 11, 2023 09:3019,273,20917,029,687,09816,960,423,63702,236,416
3Dec 11, 2023 09:3019,283,93017,023,421,37416,969,858,09102,228,224