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 21, 2024 08:11Ivan BessonovIvan BessonovScore: 15,355Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 21, 2024 08:1115,06535,174,41512,238,0001,019,0002,289,664
2May 21, 2024 08:1115,06932,368,92311,221,0002,040,0002,347,008
3May 21, 2024 08:1115,08635,870,01611,234,0002,042,0002,334,720
4May 21, 2024 08:1115,10730,675,69111,249,0002,045,0002,347,008
5May 21, 2024 08:1115,11331,092,73812,276,0001,023,0002,342,912
6May 21, 2024 08:1115,14730,636,03411,279,0002,050,0002,289,664
7May 21, 2024 08:1115,35565,750,13413,512,41902,203,648
8May 21, 2024 08:1115,81131,407,59412,921,000993,0002,289,664
9May 21, 2024 08:1115,81731,281,33211,931,0001,988,0002,342,912
10May 21, 2024 08:1115,91437,491,77613,004,0001,000,0002,289,664
11May 21, 2024 08:1116,04062,623,38114,115,35902,260,992
12May 21, 2024 08:1116,06579,334,02014,137,26202,326,528