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 28, 2021 13:41Yuriy LyfenkoYuriy LyfenkoScore: 38,850Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 28, 2021 13:4130,453106,612,05826,798,41902,220,032
2Jun 28, 2021 13:4030,453101,788,17926,799,03202,220,032
3Jun 28, 2021 13:4130,46488,862,84826,808,21702,215,936
4Jun 28, 2021 13:4130,46883,561,46926,811,75702,224,128
5Jun 28, 2021 13:4130,47599,005,20326,818,24702,211,840
6Jun 28, 2021 13:4030,57192,086,08026,902,60702,220,032
7Jun 28, 2021 13:4130,59291,554,68826,921,16102,220,032
8Jun 28, 2021 13:4030,600100,922,70926,927,84202,215,936
9Jun 28, 2021 13:4130,656101,749,68926,977,26902,215,936
10Jun 28, 2021 13:4138,73659,742,03233,086,0001,002,0002,375,680
11Jun 28, 2021 13:4038,73959,807,60833,088,0001,002,0002,269,184
12Jun 28, 2021 13:4038,78665,045,42732,125,0002,007,0002,379,776
13Jun 28, 2021 13:4138,81658,619,97833,154,0001,004,0002,379,776
14Jun 28, 2021 13:4038,85059,437,95833,183,0001,005,0002,269,184
15Jun 28, 2021 13:4038,92663,812,28232,240,0002,015,0002,269,184
16Jun 28, 2021 13:4038,92658,385,30633,248,0001,007,0002,269,184
17Jun 28, 2021 13:4138,93559,823,80033,256,0001,007,0002,269,184
18Jun 28, 2021 13:4138,94562,576,32534,272,00002,383,872
19Jun 28, 2021 13:4138,95059,148,83834,276,00002,269,184
20Jun 28, 2021 13:4138,95660,084,09234,281,00002,371,584
21Jun 28, 2021 13:4139,02054,580,20934,338,00002,269,184
22Jun 28, 2021 13:4039,03866,641,79333,343,0001,010,0002,269,184
23Jun 28, 2021 13:4039,03962,716,87332,334,0002,020,0002,371,584
24Jun 28, 2021 13:4139,05756,348,37234,370,00002,486,272
25Jun 28, 2021 13:4039,05958,889,90433,362,0001,010,0002,375,680
26Jun 28, 2021 13:4139,10057,897,22133,396,0001,012,0002,379,776
27Jun 28, 2021 13:4039,18659,581,73634,484,00002,269,184