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 19, 2021 20:59alex3dalex3dScore: 32,834Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 19, 2021 20:5932,65252,259,46027,708,0001,026,0002,265,088
2Jun 19, 2021 20:5932,71059,735,30527,757,0001,028,0002,523,136
3Jun 19, 2021 20:5932,722102,838,79328,795,53402,244,608
4Jun 19, 2021 20:5932,72890,429,80428,800,68702,256,896
5Jun 19, 2021 20:5932,77093,452,27028,837,27202,244,608
6Jun 19, 2021 20:5932,79091,440,30728,855,48102,244,608
7Jun 19, 2021 20:5932,80255,546,03727,871,000995,0002,379,776
8Jun 19, 2021 20:5932,82754,213,60027,892,000996,0002,281,472
9Jun 19, 2021 20:5932,82853,370,09527,893,000996,0002,289,664
10Jun 19, 2021 20:5932,82856,578,61126,897,0001,992,0002,289,664
11Jun 19, 2021 20:5932,83357,519,36527,897,000996,0002,523,136
12Jun 19, 2021 20:5932,83353,382,73127,897,000996,0002,289,664
13Jun 19, 2021 20:5932,83454,825,92727,898,000996,0002,289,664
14Jun 19, 2021 20:5932,83590,953,09728,895,03102,260,992
15Jun 19, 2021 20:5932,83955,034,95026,905,0001,993,0002,527,232
16Jun 19, 2021 20:5932,84354,764,53626,909,0001,993,0002,289,664
17Jun 19, 2021 20:5932,85057,296,48026,915,0001,993,0002,269,184
18Jun 19, 2021 20:5932,85160,567,02126,916,0001,993,0002,289,664
19Jun 19, 2021 20:5932,85294,593,06428,909,44102,248,704
20Jun 19, 2021 20:5932,86551,284,96226,927,0001,994,0002,383,872
21Jun 19, 2021 20:5932,92855,804,76526,979,0001,998,0002,519,040
22Jun 19, 2021 20:5932,99352,007,36827,032,0002,002,0002,265,088
23Jun 19, 2021 20:5933,02865,160,86528,063,0001,002,0002,289,664
24Jun 19, 2021 20:5933,03351,203,63627,065,0002,004,0002,523,136