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:49Ivan BessonovIvan BessonovScore: 15,497Success
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 13:4815,31730,104,65012,443,0001,036,0002,347,008
2May 21, 2024 13:4815,35129,943,61212,470,0001,039,0002,355,200
3May 21, 2024 13:4915,38330,241,19912,496,0001,041,0002,359,296
4May 21, 2024 13:4715,38438,727,44712,497,0001,041,0002,289,664
5May 21, 2024 13:4715,39036,734,36912,502,0001,041,0002,289,664
6May 21, 2024 13:4915,40331,786,16512,513,0001,042,0002,289,664
7May 21, 2024 13:4715,40830,555,53612,516,0001,043,0002,351,104
8May 21, 2024 13:4715,40933,977,39912,517,0001,043,0002,285,568
9May 21, 2024 13:4815,41632,673,34512,523,0001,043,0002,359,296
10May 21, 2024 13:4815,42536,816,13712,530,0001,044,0002,289,664
11May 21, 2024 13:4915,43234,190,24712,536,0001,044,0002,289,664
12May 21, 2024 13:4715,43334,718,50812,537,0001,044,0002,289,664
13May 21, 2024 13:4915,43430,533,83012,538,0001,044,0002,342,912
14May 21, 2024 13:4815,45330,542,60012,553,0001,046,0002,289,664
15May 21, 2024 13:4915,47735,550,72712,573,0001,047,0002,289,664
16May 21, 2024 13:4815,48030,289,58012,575,0001,047,0002,289,664
17May 21, 2024 13:4715,48934,111,57812,582,0001,048,0002,289,664
18May 21, 2024 13:4815,48929,512,94012,582,0001,048,0002,351,104
19May 21, 2024 13:4915,49729,601,37713,637,00002,289,664
20May 21, 2024 13:4915,50531,955,16913,644,00002,338,816
21May 21, 2024 13:4815,51634,589,91912,604,0001,050,0002,289,664
22May 21, 2024 13:4915,60128,796,47912,673,0001,056,0002,342,912
23May 21, 2024 13:4815,67880,920,06513,796,79002,195,456
24May 21, 2024 13:4815,73897,382,11013,849,18502,203,648
25May 21, 2024 13:4715,99340,177,09112,064,0002,010,0002,338,816
26May 21, 2024 13:4916,00229,392,62612,071,0002,011,0002,289,664
27May 21, 2024 13:4816,02432,231,96012,087,0002,014,0002,289,664
28May 21, 2024 13:4916,06290,589,06714,134,18302,330,624
29May 21, 2024 13:4716,06947,340,44913,131,0001,010,0002,347,008
30May 21, 2024 13:4716,12436,222,49112,162,0002,027,0002,289,664
31May 21, 2024 13:4716,15088,132,47514,211,64502,207,744
32May 21, 2024 13:4716,19988,987,15314,254,88202,207,744
33May 21, 2024 13:4916,22589,401,52714,278,35902,203,648
34May 21, 2024 13:4916,27682,281,78614,322,75402,195,456
35May 21, 2024 13:4716,47586,190,30014,497,69702,207,744
36May 21, 2024 13:4816,54391,536,76914,557,98302,199,552