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:39Yuriy LyfenkoYuriy LyfenkoScore: 36,792Success
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:4933,12999,153,22829,153,54802,215,936
2Jun 27, 2021 05:3933,16886,710,90129,187,66802,215,936
3Jun 27, 2021 05:3933,25165,136,94129,261,18402,220,032
4Jun 27, 2021 05:4933,26696,779,30129,274,17002,224,128
5Jun 27, 2021 05:4933,27890,923,99129,284,82702,224,128
6Jun 27, 2021 05:3933,33999,938,59629,337,94202,215,936
7Jun 27, 2021 05:3936,70256,401,94032,298,00002,375,680
8Jun 27, 2021 05:4936,73155,618,20631,313,0001,010,0002,379,776
9Jun 27, 2021 05:4936,74259,896,11831,323,0001,010,0002,375,680
10Jun 27, 2021 05:4936,75955,353,52030,327,0002,021,0002,269,184
11Jun 27, 2021 05:3936,76956,943,25331,346,0001,011,0002,269,184
12Jun 27, 2021 05:3936,76957,329,09531,346,0001,011,0002,375,680
13Jun 27, 2021 05:4936,79255,973,57731,366,0001,011,0002,371,584
14Jun 27, 2021 05:4936,84453,216,88632,423,00002,379,776
15Jun 27, 2021 05:3936,85058,116,17431,415,0001,013,0002,269,184
16Jun 27, 2021 05:4936,86554,493,24231,428,0001,013,0002,375,680
17Jun 27, 2021 05:3936,86656,056,16631,429,0001,013,0002,269,184
18Jun 27, 2021 05:4936,88053,323,99931,440,0001,014,0002,269,184
19Jun 27, 2021 05:4936,89153,459,34431,450,0001,014,0002,269,184
20Jun 27, 2021 05:4936,89754,811,50831,455,0001,014,0002,375,680
21Jun 27, 2021 05:3936,89757,655,03032,469,00002,367,488
22Jun 27, 2021 05:3936,91557,622,87232,485,00002,375,680
23Jun 27, 2021 05:3936,94755,297,68831,497,0001,016,0002,469,888
24Jun 27, 2021 05:3936,96054,306,86031,509,0001,016,0002,371,584