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 5, 2024 07:19Ivan BessonovIvan BessonovScore: 62,246Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 5, 2024 07:2162,038108,863,30254,593,12102,256,896
2May 5, 2024 07:2162,118110,564,14154,664,15802,265,088
3May 5, 2024 07:1962,148109,000,46754,690,45702,269,184
4May 5, 2024 07:2162,246135,799,97754,776,24302,256,896
5May 5, 2024 07:1962,419126,649,29754,929,04602,256,896
6May 5, 2024 07:1962,566124,195,53355,058,31202,256,896