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 21:22Ivan BessonovIvan BessonovScore: 15,881Success
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 21:2915,35175,483,30313,508,97702,252,800
2May 20, 2024 21:2215,36248,757,32113,518,15702,195,456
3May 20, 2024 21:2915,36480,667,73513,520,33702,187,264
4May 20, 2024 21:2915,42757,837,16013,575,52302,256,896
5May 20, 2024 21:2415,45696,443,45613,601,50002,191,360
6May 20, 2024 21:2415,54993,446,26913,683,55902,203,648
7May 20, 2024 21:2915,79832,883,57611,916,0001,986,0002,289,664
8May 20, 2024 21:2415,80330,796,56212,914,000993,0002,342,912
9May 20, 2024 21:2215,80636,024,35411,922,0001,987,0002,285,568
10May 20, 2024 21:2215,80936,118,63012,919,000993,0002,289,664
11May 20, 2024 21:2915,81028,782,45911,926,0001,987,0002,289,664
12May 20, 2024 21:2415,81142,108,29911,927,0001,987,0002,334,720
13May 20, 2024 21:2415,82729,605,48212,934,000994,0002,334,720
14May 20, 2024 21:2415,83235,236,81413,932,00002,289,664
15May 20, 2024 21:2415,84030,260,06912,944,000995,0002,342,912
16May 20, 2024 21:2915,84529,021,77012,948,000996,0002,338,816
17May 20, 2024 21:2215,85238,994,29112,954,000996,0002,289,664
18May 20, 2024 21:2215,86129,497,88512,961,000997,0002,469,888
19May 20, 2024 21:2415,88133,889,15311,979,0001,996,0002,338,816
20May 20, 2024 21:2915,88334,226,36611,981,0001,996,0002,334,720
21May 20, 2024 21:2915,89532,832,04811,990,0001,998,0002,347,008
22May 20, 2024 21:2915,93830,646,81312,022,0002,003,0002,285,568
23May 20, 2024 21:2216,00684,501,80114,085,68402,203,648
24May 20, 2024 21:2216,11994,907,84814,184,50502,334,720
25May 20, 2024 21:2416,29730,517,62413,317,0001,024,0002,351,104
26May 20, 2024 21:2916,31735,796,62112,308,0002,051,0002,424,832
27May 20, 2024 21:2416,36090,427,10114,396,55002,191,360
28May 20, 2024 21:2216,39834,509,85913,400,0001,030,0002,289,664
29May 20, 2024 21:2216,42444,890,56213,421,0001,032,0002,289,664
30May 20, 2024 21:2916,43932,836,20413,433,0001,033,0002,289,664
31May 20, 2024 21:2916,45229,988,62114,478,00002,289,664
32May 20, 2024 21:2216,47836,061,11914,501,00002,289,664
33May 20, 2024 21:2416,50829,825,30913,490,0001,037,0002,285,568
34May 20, 2024 21:2416,53637,951,52613,513,0001,039,0002,342,912
35May 20, 2024 21:2216,55243,472,15413,526,0001,040,0002,289,664
36May 20, 2024 21:2216,60334,254,44313,568,0001,043,0002,347,008