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 listMay 4, 2024 20:21Ivan BessonovIvan BessonovScore: 72,539Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 4, 2024 20:1172,319137,729,78563,640,98402,256,896
2May 4, 2024 20:1172,358120,322,28363,675,30202,269,184
3May 4, 2024 20:2172,481124,778,64263,782,84802,260,992
4May 4, 2024 20:2172,539127,035,85263,833,98402,265,088
5May 4, 2024 20:1172,542139,480,98163,836,59702,256,896
6May 4, 2024 20:2172,571131,327,05963,862,78002,252,800