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: 214,282Success
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:24210,927253,611,109185,615,63702,297,856
2Dec 28, 2023 23:24214,282245,795,995188,567,95902,297,856
3Dec 28, 2023 23:24215,630246,021,068189,754,11202,297,856