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 18, 2024 11:42Ivan BessonovIvan BessonovScore: 20,591Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2024 11:4219,95950,282,40515,613,0001,951,0002,297,856
2May 18, 2024 11:4219,96340,137,02117,567,00002,289,664
3May 18, 2024 11:4219,98136,514,17916,549,0001,034,0002,289,664
4May 18, 2024 11:4220,03039,836,16316,590,0001,036,0002,379,776
5May 18, 2024 11:4220,06537,251,18216,619,0001,038,0002,306,048
6May 18, 2024 11:4220,10049,751,99716,648,0001,040,0002,289,664
7May 18, 2024 11:4220,59140,891,17616,107,0002,013,0002,301,952
8May 18, 2024 11:4220,64438,864,72816,149,0002,018,0002,289,664
9May 18, 2024 11:4220,68345,202,17716,179,0002,022,0002,301,952
10May 18, 2024 11:4221,37587,296,05518,810,09902,281,472
11May 18, 2024 11:4221,45093,526,35718,875,94302,285,568
12May 18, 2024 11:4222,00589,458,69919,364,10502,293,760