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 20, 2024 20:53Ivan BessonovIvan BessonovScore: 15,869Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 20, 2024 20:5315,39359,145,21413,545,98102,199,552
2May 20, 2024 20:5215,40886,312,25113,559,34702,199,552
3May 20, 2024 20:5215,43476,608,45013,582,23202,330,624
4May 20, 2024 20:5215,45685,614,13113,601,37902,191,360
5May 20, 2024 20:5315,59293,286,83613,720,69202,195,456
6May 20, 2024 20:5215,78639,292,33012,900,000992,0002,461,696
7May 20, 2024 20:5315,79134,363,44911,911,0001,985,0002,289,664
8May 20, 2024 20:5215,80631,122,84211,922,0001,987,0002,289,664
9May 20, 2024 20:5315,80638,101,21213,909,00002,347,008
10May 20, 2024 20:5215,82241,515,87112,929,000994,0002,342,912
11May 20, 2024 20:5315,83526,540,65111,945,0001,990,0002,449,408
12May 20, 2024 20:5215,84330,768,35811,951,0001,991,0002,351,104
13May 20, 2024 20:5315,86930,528,64711,970,0001,995,0002,461,696
14May 20, 2024 20:5215,89033,175,17611,986,0001,997,0002,338,816
15May 20, 2024 20:5315,91836,291,10712,007,0002,001,0002,437,120
16May 20, 2024 20:5315,95234,944,95312,033,0002,005,0002,289,664
17May 20, 2024 20:5315,99671,724,20214,076,07502,195,456
18May 20, 2024 20:5316,08631,968,13012,134,0002,022,0002,289,664
19May 20, 2024 20:5316,29335,655,79312,290,0002,048,0002,285,568
20May 20, 2024 20:5216,32048,654,08912,311,0002,051,0002,289,664
21May 20, 2024 20:5316,42035,579,78412,386,0002,064,0002,338,816
22May 20, 2024 20:5216,45030,696,07513,442,0001,034,0002,342,912
23May 20, 2024 20:5216,49330,560,85813,478,0001,036,0002,289,664
24May 20, 2024 20:5216,52231,488,23113,501,0001,038,0002,285,568