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 19:32Ivan BessonovIvan BessonovScore: 17,186Success
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 19:3216,99239,328,72212,960,0001,993,0002,289,664
2May 18, 2024 19:3216,99933,057,03812,965,0001,994,0002,289,664
3May 18, 2024 19:2817,02233,838,17412,982,0001,997,0002,285,568
4May 18, 2024 19:2817,04740,714,29914,001,0001,000,0002,306,048
5May 18, 2024 19:2817,06439,249,53913,014,0002,002,0002,301,952
6May 18, 2024 19:3217,06834,473,37013,018,0002,002,0002,293,760
7May 18, 2024 19:2817,07539,025,78913,023,0002,003,0002,297,856
8May 18, 2024 19:3217,07737,781,29213,025,0002,003,0002,289,664
9May 18, 2024 19:2817,08146,612,01913,027,0002,004,0002,289,664
10May 18, 2024 19:2817,09335,320,50813,037,0002,005,0002,289,664
11May 18, 2024 19:3217,10730,674,53013,047,0002,007,0002,289,664
12May 18, 2024 19:2817,10730,847,96114,051,0001,003,0002,289,664
13May 18, 2024 19:2817,18635,268,30913,108,0002,016,0002,289,664
14May 18, 2024 19:3217,19438,455,80413,114,0002,017,0002,297,856
15May 18, 2024 19:3217,41966,662,83315,328,56002,289,664
16May 18, 2024 19:3217,45185,417,63215,356,97302,293,760
17May 18, 2024 19:3217,50187,680,95615,400,98202,281,472
18May 18, 2024 19:2817,52577,814,59515,422,01202,289,664
19May 18, 2024 19:2818,04543,129,55914,888,000992,0002,297,856
20May 18, 2024 19:3218,04741,613,29114,823,0001,058,0002,289,664
21May 18, 2024 19:3218,07836,337,31913,921,0001,988,0002,301,952
22May 18, 2024 19:3218,08435,748,65313,925,0001,989,0002,289,664
23May 18, 2024 19:2818,12382,539,17015,947,82602,289,664
24May 18, 2024 19:2818,52177,239,37316,298,24802,281,472