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 21, 2024 13:28Ivan BessonovIvan BessonovScore: 15,803Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 21, 2024 08:1315,39584,334,90213,547,82202,191,360
2May 21, 2024 08:1315,43977,174,22713,586,49502,203,648
3May 21, 2024 13:2815,60941,519,87512,680,0001,056,0002,289,664
4May 21, 2024 08:1315,65129,281,68512,714,0001,059,0002,289,664
5May 21, 2024 13:2815,66435,003,14312,724,0001,060,0002,289,664
6May 21, 2024 13:2815,69797,927,03213,813,57102,334,720
7May 21, 2024 08:1315,75238,958,14213,862,00002,289,664
8May 21, 2024 08:1315,77327,366,49012,889,000991,0002,424,832
9May 21, 2024 08:1315,79529,928,19311,915,0001,985,0002,445,312
10May 21, 2024 08:1315,79928,675,54111,917,0001,986,0002,289,664
11May 21, 2024 13:2815,80141,670,80812,912,000993,0002,351,104
12May 21, 2024 08:1315,80235,259,80811,920,0001,986,0002,342,912
13May 21, 2024 08:1315,80328,425,53511,921,0001,986,0002,289,664
14May 21, 2024 08:1315,80631,164,34212,916,000993,0002,289,664
15May 21, 2024 13:2815,80836,974,70011,924,0001,987,0002,347,008
16May 21, 2024 13:2815,81429,790,02912,922,000994,0002,342,912
17May 21, 2024 13:2816,02163,009,70114,098,79402,342,912
18May 21, 2024 08:1316,08060,367,12414,150,60202,199,552
19May 21, 2024 13:2816,27032,253,28212,273,0002,045,0002,289,664
20May 21, 2024 13:2816,30830,479,98812,301,0002,050,0002,338,816
21May 21, 2024 13:2816,33442,669,40212,321,0002,053,0002,289,664
22May 21, 2024 13:2816,34575,055,91414,383,55302,211,840
23May 21, 2024 08:1316,40834,282,38213,408,0001,031,0002,342,912
24May 21, 2024 13:2816,45034,547,11212,408,0002,068,0002,285,568