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 28, 2023 23:24Yurkov AlekseyYurkov AlekseyScore: 219,129Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2023 23:24206,989245,956,289182,150,59202,293,760
2Dec 28, 2023 23:24219,129257,036,986192,833,73502,297,856
3Dec 28, 2023 23:24224,066253,163,968197,178,16902,289,664