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 05:08Yuriy LyfenkoYuriy LyfenkoScore: 35,757Success
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 05:0833,577113,147,33829,548,16402,220,032
2Jun 27, 2021 05:2833,58992,572,27529,558,18102,220,032
3Jun 27, 2021 05:0333,632100,753,70829,595,86602,220,032
4Jun 27, 2021 05:0833,67093,001,03429,629,24602,244,608
5Jun 27, 2021 05:0333,67692,530,42629,634,66102,224,128
6Jun 27, 2021 05:2833,68588,948,15429,642,77302,220,032
7Jun 27, 2021 05:0333,68682,269,12729,643,36702,224,128
8Jun 27, 2021 05:2833,703100,258,39429,658,96702,211,840
9Jun 27, 2021 05:0833,814100,103,73529,756,63902,220,032
10Jun 27, 2021 05:0835,64954,127,29031,371,00002,269,184
11Jun 27, 2021 05:0835,70358,020,54030,406,0001,013,0002,269,184
12Jun 27, 2021 05:0835,71054,180,58330,412,0001,013,0002,269,184
13Jun 27, 2021 05:0335,75554,674,24831,464,00002,375,680
14Jun 27, 2021 05:0335,75752,842,11931,466,00002,269,184
15Jun 27, 2021 05:0335,75955,192,68630,453,0001,015,0002,269,184
16Jun 27, 2021 05:0335,76154,859,04731,470,00002,379,776
17Jun 27, 2021 05:0335,80159,672,57031,505,00002,379,776
18Jun 27, 2021 05:0835,80253,710,37931,506,00002,379,776
19Jun 27, 2021 05:0835,81758,358,99431,519,00002,269,184
20Jun 27, 2021 05:0335,89853,949,41830,571,0001,019,0002,367,488
21Jun 27, 2021 05:0335,93661,580,64331,624,00002,265,088
22Jun 27, 2021 05:0835,97657,285,18930,638,0001,021,0002,375,680
23Jun 27, 2021 05:0335,98258,026,77030,643,0001,021,0002,269,184
24Jun 27, 2021 05:0335,99262,961,48431,673,00002,269,184
25Jun 27, 2021 05:0836,00056,335,62030,659,0001,021,0002,465,792
26Jun 27, 2021 05:0836,01060,079,26230,667,0001,022,0002,273,280
27Jun 27, 2021 05:0836,03360,205,03031,709,00002,269,184