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 19:17Ivan BessonovIvan BessonovScore: 15,449Success
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 19:1615,34230,742,20212,463,0001,038,0002,289,664
2May 20, 2024 19:1715,35930,557,62312,477,0001,039,0002,342,912
3May 20, 2024 19:1615,39436,462,06212,505,0001,042,0002,289,664
4May 20, 2024 19:1715,39830,859,01512,508,0001,042,0002,285,568
5May 20, 2024 19:1615,40234,612,93012,512,0001,042,0002,342,912
6May 20, 2024 19:1615,40533,945,57612,514,0001,042,0002,289,664
7May 20, 2024 19:1715,41835,194,94912,525,0001,043,0002,441,216
8May 20, 2024 19:1615,42328,993,07413,572,00002,342,912
9May 20, 2024 19:1715,43336,455,21112,537,0001,044,0002,289,664
10May 20, 2024 19:1615,44137,411,89513,588,00002,289,664
11May 20, 2024 19:1715,44431,799,01813,591,00002,289,664
12May 20, 2024 19:1715,44930,740,83412,550,0001,045,0002,289,664
13May 20, 2024 19:1615,44930,245,15712,550,0001,045,0002,285,568
14May 20, 2024 19:1715,46729,714,32512,564,0001,047,0002,342,912
15May 20, 2024 19:1615,48539,070,88513,627,00002,289,664
16May 20, 2024 19:1715,50533,479,05012,595,0001,049,0002,289,664
17May 20, 2024 19:1715,50731,884,06312,597,0001,049,0002,334,720
18May 20, 2024 19:1716,02962,739,90414,105,08302,191,360
19May 20, 2024 19:1716,06663,098,52414,138,01902,195,456
20May 20, 2024 19:1616,11330,555,23712,154,0002,025,0002,351,104
21May 20, 2024 19:1716,381103,005,99214,415,11402,195,456
22May 20, 2024 19:1616,59062,120,77614,598,87002,326,528
23May 20, 2024 19:1616,65563,762,71014,656,62602,203,648
24May 20, 2024 19:1616,69283,405,41114,688,88202,256,896