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 listJun 27, 2021 19:38Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2021 19:3700000Error: expected "50716462131078 ", got "50716462131065 "
2Jun 27, 2021 19:3831,480110,179,65727,702,10002,207,744
3Jun 27, 2021 19:3831,546100,355,09227,760,55802,228,224
4Jun 27, 2021 19:3831,59589,137,64927,803,88502,224,128
5Jun 27, 2021 19:3836,53258,170,92930,139,0002,009,0002,269,184
6Jun 27, 2021 19:3836,68960,613,97331,278,0001,008,0002,371,584
7Jun 27, 2021 19:3836,70157,264,87532,297,00002,383,872
8Jun 27, 2021 19:3836,79253,642,14531,366,0001,011,0002,269,184
9Jun 27, 2021 19:3836,80853,878,53931,379,0001,012,0002,379,776
10Jun 27, 2021 19:3836,82257,823,82731,391,0001,012,0002,383,872
11Jun 27, 2021 19:3836,85557,498,89331,419,0001,013,0002,269,184
12Jun 27, 2021 19:3836,88958,997,83932,462,00002,269,184
13Jun 27, 2021 19:3836,90858,212,89632,479,00002,379,776