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 12:27Ivan BessonovIvan BessonovScore: 16,113Success
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 12:2615,92034,228,15612,009,0002,001,0002,289,664
2May 20, 2024 12:2715,97633,937,48812,051,0002,008,0002,347,008
3May 20, 2024 12:2715,98531,060,25312,058,0002,009,0002,338,816
4May 20, 2024 12:2715,99332,353,35812,064,0002,010,0002,285,568
5May 20, 2024 12:2616,02435,463,50512,087,0002,014,0002,342,912
6May 20, 2024 12:2616,02440,981,02312,087,0002,014,0002,289,664
7May 20, 2024 12:2716,03136,644,13912,092,0002,015,0002,289,664
8May 20, 2024 12:2616,03233,464,60212,093,0002,015,0002,342,912
9May 20, 2024 12:2716,03330,796,98112,094,0002,015,0002,453,504
10May 20, 2024 12:2716,04246,560,43112,101,0002,016,0002,289,664
11May 20, 2024 12:2716,04732,280,76212,104,0002,017,0002,289,664
12May 20, 2024 12:2716,04933,462,59813,115,0001,008,0002,289,664
13May 20, 2024 12:2716,05635,428,20013,120,0001,009,0002,289,664
14May 20, 2024 12:2616,05734,347,55212,112,0002,018,0002,289,664
15May 20, 2024 12:2616,07637,839,91212,126,0002,021,0002,338,816
16May 20, 2024 12:2616,07830,781,57013,139,0001,010,0002,351,104
17May 20, 2024 12:2716,08231,225,51512,131,0002,021,0002,338,816
18May 20, 2024 12:2716,08930,845,32512,136,0002,022,0002,289,664
19May 20, 2024 12:2716,11340,510,08512,154,0002,025,0002,289,664
20May 20, 2024 12:2716,15632,908,16912,186,0002,031,0002,338,816
21May 20, 2024 12:2616,51037,817,61213,492,0001,037,0002,342,912
22May 20, 2024 12:2616,52536,009,01113,504,0001,038,0002,453,504
23May 20, 2024 12:2716,55032,288,62413,524,0001,040,0002,289,664
24May 20, 2024 12:2716,65034,841,48213,606,0001,046,0002,285,568
25May 20, 2024 12:2716,66835,305,22313,621,0001,047,0002,342,912
26May 20, 2024 12:2716,69935,724,50413,646,0001,049,0002,289,664
27May 20, 2024 12:2716,77330,858,61513,706,0001,054,0002,289,664
28May 20, 2024 12:2616,77564,040,14014,762,33302,199,552
29May 20, 2024 12:2716,82384,252,69314,804,56802,195,456
30May 20, 2024 12:2716,86184,346,03814,837,87302,195,456
31May 20, 2024 12:2617,24284,552,30215,172,56602,199,552
32May 20, 2024 12:2617,31676,718,59815,238,49402,195,456
33May 20, 2024 12:2717,32573,896,62915,245,69502,334,720
34May 20, 2024 12:2717,38161,703,12115,294,94702,203,648
35May 20, 2024 12:2717,47980,163,88815,381,71902,330,624
36May 20, 2024 12:2717,48779,516,19015,388,54502,334,720