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 14:20Ivan BessonovIvan BessonovScore: 20,416Success
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 14:2119,63138,660,49715,243,0002,032,0002,301,952
2May 18, 2024 14:2019,68042,925,72215,281,0002,037,0002,281,472
3May 18, 2024 14:2019,69333,141,24116,311,0001,019,0002,301,952
4May 18, 2024 14:2019,71039,082,93315,305,0002,040,0002,289,664
5May 18, 2024 14:2119,73338,531,85715,322,0002,043,0002,297,856
6May 18, 2024 14:2119,74342,561,59915,330,0002,044,0002,301,952
7May 18, 2024 14:2119,79438,349,07516,395,0001,024,0002,301,952
8May 18, 2024 14:2119,79734,059,08816,397,0001,024,0002,289,664
9May 18, 2024 14:2019,81636,925,97016,413,0001,025,0002,289,664
10May 18, 2024 14:2019,84139,360,80216,433,0001,027,0002,396,160
11May 18, 2024 14:2019,98843,242,04414,658,0002,931,0002,289,664
12May 18, 2024 14:2120,36433,903,38016,866,0001,054,0002,301,952
13May 18, 2024 14:2020,41643,657,07015,970,0001,996,0002,289,664
14May 18, 2024 14:2020,43136,166,96515,982,0001,997,0002,285,568
15May 18, 2024 14:2120,44742,239,85515,994,0001,999,0002,289,664
16May 18, 2024 14:2120,44940,396,84715,996,0001,999,0002,285,568
17May 18, 2024 14:2120,50234,069,77616,038,0002,004,0002,306,048
18May 18, 2024 14:2020,59244,940,67616,108,0002,013,0002,289,664
19May 18, 2024 14:2121,32098,922,51318,761,93602,281,472
20May 18, 2024 14:2121,38678,111,44618,819,53402,277,376
21May 18, 2024 14:2121,40678,735,00418,837,05902,289,664
22May 18, 2024 14:2021,68186,893,16219,079,58202,277,376
23May 18, 2024 14:2021,92465,071,44819,293,04202,285,568
24May 18, 2024 14:2021,946105,692,92719,312,18902,285,568