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 21:09Yuriy LyfenkoYuriy LyfenkoScore: 44,342Success
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 21:0943,809101,714,06338,551,98802,224,128
2Jun 27, 2021 21:0743,90099,300,46538,631,95602,220,032
3Jun 27, 2021 21:0743,915103,709,65238,645,32102,215,936
4Jun 27, 2021 21:0943,974110,623,26238,697,01202,224,128
5Jun 27, 2021 21:0943,979106,760,78338,701,37202,232,320
6Jun 27, 2021 21:0744,022103,877,17638,739,05002,220,032
7Jun 27, 2021 21:0944,23463,687,57437,928,000998,0002,269,184
8Jun 27, 2021 21:0744,25666,714,37036,948,0001,997,0002,269,184
9Jun 27, 2021 21:0944,26072,588,62537,951,000998,0002,375,680
10Jun 27, 2021 21:0944,30667,129,68836,990,0001,999,0002,379,776
11Jun 27, 2021 21:0744,31069,166,82836,994,0001,999,0002,269,184
12Jun 27, 2021 21:0744,31365,124,68537,996,000999,0002,269,184
13Jun 27, 2021 21:0944,34266,328,36237,020,0002,001,0002,375,680
14Jun 27, 2021 21:0744,34368,513,64638,022,0001,000,0002,367,488
15Jun 27, 2021 21:0744,35063,072,30538,028,0001,000,0002,379,776
16Jun 27, 2021 21:0944,35667,804,55838,033,0001,000,0002,371,584
17Jun 27, 2021 21:0744,36067,206,92937,036,0002,001,0002,375,680
18Jun 27, 2021 21:0944,37266,166,16937,045,0002,002,0002,465,792
19Jun 27, 2021 21:0744,41563,682,72237,081,0002,004,0002,269,184
20Jun 27, 2021 21:0944,42471,434,61837,089,0002,004,0002,269,184
21Jun 27, 2021 21:0944,43074,741,21437,093,0002,005,0002,269,184
22Jun 27, 2021 21:0744,44063,870,96138,105,0001,002,0002,375,680
23Jun 27, 2021 21:0744,55970,469,30937,202,0002,010,0002,371,584
24Jun 27, 2021 21:0944,59765,278,68037,233,0002,012,0002,379,776