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 21:05alex3dalex3dScore: 33,652Success
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 21:0533,53654,511,98629,512,00002,289,664
2Jun 19, 2021 21:0533,54154,956,87528,499,0001,017,0002,289,664
3Jun 19, 2021 21:0533,551100,336,46229,524,58302,248,704
4Jun 19, 2021 21:0533,59952,636,21628,548,0001,019,0002,289,664
5Jun 19, 2021 21:0533,61054,823,24528,558,0001,019,0002,265,088
6Jun 19, 2021 21:0533,61793,640,03129,582,66402,244,608
7Jun 19, 2021 21:0533,62260,672,90828,567,0001,020,0002,269,184
8Jun 19, 2021 21:0533,629111,883,61529,593,44702,256,896
9Jun 19, 2021 21:0533,63590,858,50629,598,52602,248,704
10Jun 19, 2021 21:0533,63857,372,01728,581,0001,020,0002,289,664
11Jun 19, 2021 21:0533,64355,962,80028,586,0001,020,0002,289,664
12Jun 19, 2021 21:0533,64454,649,13928,587,0001,020,0002,289,664
13Jun 19, 2021 21:0533,65292,892,65829,614,00202,252,800
14Jun 19, 2021 21:0533,65850,148,80929,619,00002,371,584
15Jun 19, 2021 21:0533,67552,527,93029,634,00002,289,664
16Jun 19, 2021 21:0533,69251,231,08428,627,0001,022,0002,289,664
17Jun 19, 2021 21:0533,70758,540,38628,640,0001,022,0002,289,664
18Jun 19, 2021 21:0533,77595,839,73129,722,03402,252,800
19Jun 19, 2021 21:0533,78462,246,45228,705,0001,025,0002,289,664
20Jun 19, 2021 21:0533,80758,051,00528,725,0001,025,0002,289,664
21Jun 19, 2021 21:0533,80859,726,25528,726,0001,025,0002,265,088
22Jun 19, 2021 21:0533,85159,619,77628,762,0001,027,0002,289,664
23Jun 19, 2021 21:0533,92556,777,66727,864,0001,990,0002,269,184
24Jun 19, 2021 21:0533,98055,480,81527,909,0001,993,0002,359,296