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 17:26Ivan BessonovIvan BessonovScore: 15,538Success
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 17:2614,97429,428,51311,150,0002,027,0002,351,104
2May 21, 2024 17:2614,97628,199,33911,152,0002,027,0002,478,080
3May 21, 2024 17:2615,06528,085,33411,218,0002,039,0002,289,664
4May 21, 2024 17:2615,08129,631,48212,251,0001,020,0002,347,008
5May 21, 2024 17:2615,09131,134,52211,237,0002,043,0002,289,664
6May 21, 2024 17:2615,15028,654,14411,281,0002,051,0002,338,816
7May 21, 2024 17:2615,53879,000,28813,673,17802,199,552
8May 21, 2024 17:2615,60836,944,05812,679,0001,056,0002,342,912
9May 21, 2024 17:2615,62556,950,83113,750,10702,191,360
10May 21, 2024 17:2615,78030,325,36711,903,0001,983,0002,289,664
11May 21, 2024 17:2615,79535,387,90911,915,0001,985,0002,289,664
12May 21, 2024 17:2616,17578,677,04914,233,88002,195,456