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 listMay 18, 2024 11:26Ivan BessonovIvan BessonovScore: 19,998Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2024 11:2519,79147,142,90817,416,00002,289,664
2May 18, 2024 11:2619,80239,036,86917,426,00002,375,680
3May 18, 2024 11:2519,82739,471,16916,422,0001,026,0002,383,872
4May 18, 2024 11:2519,86344,596,27516,451,0001,028,0002,387,968
5May 18, 2024 11:2519,87434,020,13816,461,0001,028,0002,289,664
6May 18, 2024 11:2619,88343,828,47717,497,00002,383,872
7May 18, 2024 11:2619,89336,281,58616,477,0001,029,0002,379,776
8May 18, 2024 11:2519,91143,644,75716,492,0001,030,0002,379,776
9May 18, 2024 11:2619,91843,928,70616,497,0001,031,0002,379,776
10May 18, 2024 11:2619,91839,626,29016,497,0001,031,0002,289,664
11May 18, 2024 11:2519,93844,990,40216,513,0001,032,0002,289,664
12May 18, 2024 11:2519,96847,135,70816,539,0001,033,0002,289,664
13May 18, 2024 11:2619,99846,343,80415,528,0002,070,0002,371,584
14May 18, 2024 11:2620,36535,452,98816,867,0001,054,0002,289,664
15May 18, 2024 11:2620,64539,313,11816,150,0002,018,0002,289,664
16May 18, 2024 11:2520,68845,154,47516,183,0002,022,0002,289,664
17May 18, 2024 11:2520,82740,850,99216,292,0002,036,0002,289,664
18May 18, 2024 11:2620,94235,971,52316,382,0002,047,0002,461,696
19May 18, 2024 11:2521,60778,147,44319,014,20402,224,128
20May 18, 2024 11:2521,73297,711,45619,123,80702,228,224
21May 18, 2024 11:2622,11180,993,00019,457,39102,232,320
22May 18, 2024 11:2522,34978,059,18519,666,94402,228,224
23May 18, 2024 11:2622,37590,358,99819,689,85802,371,584
24May 18, 2024 11:2622,38781,653,67319,700,74102,232,320