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 20:43Yuriy LyfenkoYuriy LyfenkoScore: 36,684Success
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 20:4231,50695,588,59527,725,55502,215,936
2Jun 27, 2021 20:4331,51389,561,30327,731,55902,220,032
3Jun 27, 2021 20:4231,51798,510,77027,734,55902,215,936
4Jun 27, 2021 20:4331,60888,711,30427,814,72402,220,032
5Jun 27, 2021 20:4331,62489,377,30727,828,83402,220,032
6Jun 27, 2021 20:4231,64689,362,05927,848,49702,220,032
7Jun 27, 2021 20:4336,65760,717,02330,242,0002,016,0002,269,184
8Jun 27, 2021 20:4336,68463,083,32331,274,0001,008,0002,375,680
9Jun 27, 2021 20:4336,72258,756,62431,306,0001,009,0002,269,184
10Jun 27, 2021 20:4336,81663,055,66731,386,0001,012,0002,383,872
11Jun 27, 2021 20:4336,83953,468,72931,405,0001,013,0002,383,872
12Jun 27, 2021 20:4336,90555,090,12631,462,0001,014,0002,269,184
13Jun 27, 2021 20:4336,90556,478,38031,462,0001,014,0002,269,184
14Jun 27, 2021 20:4336,93163,848,34831,484,0001,015,0002,269,184
15Jun 27, 2021 20:4336,95058,744,67431,500,0001,016,0002,375,680