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 31, 2023 00:19Yurkov AlekseyYurkov AlekseyScore: 98,178Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 30, 2023 23:5997,489147,541,53185,790,30302,273,280
2Dec 31, 2023 00:1997,694140,199,59785,970,28802,273,280
3Dec 30, 2023 23:5997,819141,526,56886,080,69802,273,280
4Dec 31, 2023 00:1998,178143,008,28986,396,37202,269,184
5Dec 31, 2023 00:1998,200162,113,25786,415,68502,265,088
6Dec 30, 2023 23:5998,762153,791,25186,910,87802,269,184