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 25, 2023 22:02Yurkov AlekseyYurkov AlekseyScore: 258,301Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 25, 2023 22:02253,081277,921,886222,710,97902,252,800
2Dec 25, 2023 22:02258,301295,506,962227,304,60302,285,568
3Dec 25, 2023 22:02266,304292,885,642234,347,41102,285,568