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 13, 2024 08:47Ivan BessonovIvan BessonovScore: 35,352Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 13, 2024 08:4731,99198,551,73128,152,47302,260,992
2May 13, 2024 08:4732,02292,550,90428,179,76902,260,992
3May 13, 2024 08:4732,16389,043,72128,303,59002,260,992
4May 13, 2024 08:4735,24154,709,62529,012,0002,000,0002,281,472
5May 13, 2024 08:4735,25757,448,22629,025,0002,001,0002,289,664
6May 13, 2024 08:4735,31155,022,43329,070,0002,004,0002,289,664
7May 13, 2024 08:4735,35256,551,76329,103,0002,007,0002,273,280
8May 13, 2024 08:4735,35357,647,43129,104,0002,007,0002,289,664
9May 13, 2024 08:4735,35752,525,82629,107,0002,007,0002,265,088
10May 13, 2024 08:4735,37557,796,77030,126,0001,004,0002,289,664
11May 13, 2024 08:4735,38957,771,48930,138,0001,004,0002,269,184
12May 13, 2024 08:4735,39851,852,60729,141,0002,009,0002,289,664