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 18:50Yuriy LyfenkoYuriy LyfenkoError
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 18:5600000Error: expected "51920952157242 ", got "51920952157075 "
2Jun 27, 2021 18:5732,417112,717,58128,527,22802,220,032
3Jun 27, 2021 18:5132,51288,018,03528,610,35502,220,032
4Jun 27, 2021 18:5032,58981,701,90828,678,15002,215,936
5Jun 27, 2021 18:5132,59798,678,45328,684,92302,224,128
6Jun 27, 2021 18:5732,60296,793,47228,690,13102,224,128
7Jun 27, 2021 18:5032,63288,804,51528,715,95602,220,032
8Jun 27, 2021 18:5132,64695,485,49728,728,69702,224,128
9Jun 27, 2021 18:5032,70897,794,38428,782,82902,224,128
10Jun 27, 2021 18:5732,74486,425,21228,814,61202,211,840
11Jun 27, 2021 18:5044,85060,650,89838,456,0001,012,0002,269,184
12Jun 27, 2021 18:5044,93172,549,57338,526,0001,013,0002,375,680
13Jun 27, 2021 18:5045,03566,687,69838,615,0001,016,0002,269,184
14Jun 27, 2021 18:5045,09874,117,42938,669,0001,017,0002,265,088
15Jun 27, 2021 18:5045,10869,930,48339,695,00002,269,184
16Jun 27, 2021 18:5045,10969,067,55138,679,0001,017,0002,375,680
17Jun 27, 2021 18:5045,17065,547,65138,731,0001,019,0002,379,776
18Jun 27, 2021 18:5045,19564,662,29538,753,0001,019,0002,269,184
19Jun 27, 2021 18:5045,31864,712,46538,883,000997,0002,269,184