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 19, 2024 07:08Ivan BessonovIvan BessonovScore: 16,598Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 19, 2024 07:0316,44435,800,06414,471,00002,285,568
2May 19, 2024 07:0316,45635,777,37213,447,0001,034,0002,289,664
3May 19, 2024 07:0816,49536,050,22913,480,0001,036,0002,289,664
4May 19, 2024 07:0316,49832,315,21613,481,0001,037,0002,342,912
5May 19, 2024 07:0316,50232,440,18714,522,00002,326,528
6May 19, 2024 07:0816,51632,474,43714,534,00002,289,664
7May 19, 2024 07:0316,52732,047,05413,506,0001,038,0002,342,912
8May 19, 2024 07:0816,52738,464,94113,506,0001,038,0002,334,720
9May 19, 2024 07:0816,53938,193,13413,515,0001,039,0002,289,664
10May 19, 2024 07:0316,54030,017,43913,516,0001,039,0002,457,600
11May 19, 2024 07:0316,56337,087,31813,534,0001,041,0002,330,624
12May 19, 2024 07:0316,56837,322,91113,539,0001,041,0002,289,664
13May 19, 2024 07:0816,59833,632,67214,606,00002,330,624
14May 19, 2024 07:0816,79079,134,81714,775,40902,195,456
15May 19, 2024 07:0816,81789,575,25414,799,34202,195,456
16May 19, 2024 07:0316,94036,953,04412,920,0001,987,0002,289,664
17May 19, 2024 07:0817,14443,165,42514,082,0001,005,0002,289,664
18May 19, 2024 07:0817,17234,088,31013,097,0002,014,0002,289,664
19May 19, 2024 07:0817,182100,294,66515,119,87502,187,264
20May 19, 2024 07:0817,20132,360,65513,119,0002,018,0002,289,664
21May 19, 2024 07:0817,25934,189,14913,163,0002,025,0002,289,664
22May 19, 2024 07:0317,29861,641,69815,222,66102,183,168
23May 19, 2024 07:0317,35492,769,53315,271,40502,195,456
24May 19, 2024 07:0317,50899,726,64715,406,60802,195,456