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:06Yuriy LyfenkoYuriy LyfenkoScore: 35,126Success
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:1032,481108,236,78628,582,86002,220,032
2Jun 27, 2021 19:1032,52190,988,80628,618,36902,220,032
3Jun 27, 2021 19:0632,52486,346,57928,621,00702,228,224
4Jun 27, 2021 19:1032,54284,088,67828,637,37702,224,128
5Jun 27, 2021 19:0632,59392,792,08828,682,23002,215,936
6Jun 27, 2021 19:0632,60199,044,52228,689,30902,228,224
7Jun 27, 2021 19:0635,11057,776,41430,897,00002,269,184
8Jun 27, 2021 19:0635,12654,769,71030,911,00002,273,280
9Jun 27, 2021 19:0635,14255,747,78329,895,0001,030,0002,502,656
10Jun 27, 2021 19:0635,16666,117,87829,948,000998,0002,379,776
11Jun 27, 2021 19:0635,18157,460,58128,962,0001,997,0002,269,184
12Jun 27, 2021 19:0635,18257,002,66528,963,0001,997,0002,269,184
13Jun 27, 2021 19:0635,22859,180,61429,001,0002,000,0002,269,184
14Jun 27, 2021 19:0635,27764,738,55030,043,0001,001,0002,371,584
15Jun 27, 2021 19:0635,40962,631,87629,150,0002,010,0002,502,656