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 12, 2024 16:48Ivan BessonovIvan BessonovScore: 43,585Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 12, 2024 16:4840,762109,960,40935,870,20102,252,800
2May 12, 2024 16:4840,804114,043,92135,907,36102,265,088
3May 12, 2024 16:4840,934116,768,57636,021,98902,256,896
4May 12, 2024 16:4843,54060,618,85037,307,0001,008,0002,289,664
5May 12, 2024 16:4843,57666,412,52437,338,0001,009,0002,281,472
6May 12, 2024 16:4843,58161,123,78338,351,00002,269,184
7May 12, 2024 16:4843,58564,659,10937,346,0001,009,0002,289,664
8May 12, 2024 16:4843,62060,851,76837,376,0001,010,0002,289,664
9May 12, 2024 16:4843,65769,259,45837,407,0001,011,0002,289,664
10May 12, 2024 16:4843,72867,146,23437,469,0001,012,0002,289,664
11May 12, 2024 16:4843,76659,660,90337,501,0001,013,0002,289,664
12May 12, 2024 16:4843,80362,614,05538,547,00002,289,664