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 12:29zielajzielajScore: 4,475Success
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 12:294,46419,409,3011,964,0001,964,0002,281,472
2Dec 20, 2024 12:294,47521,770,3041,969,0001,969,0002,535,424
3Dec 20, 2024 12:294,47715,296,6642,955,000985,0002,531,328