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 16, 2024 21:09Ivan BessonovIvan BessonovScore: 30,660Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2024 21:1027,78289,463,88024,448,33602,260,992
2May 16, 2024 21:1027,82699,750,79324,487,00502,265,088
3May 16, 2024 21:1027,83888,396,82824,497,44002,248,704
4May 16, 2024 21:0927,877103,704,42624,532,07002,260,992
5May 16, 2024 21:0927,92486,761,86024,573,41502,256,896
6May 16, 2024 21:0927,95890,308,19324,603,36702,265,088
7May 16, 2024 21:1030,58657,521,28424,923,0001,993,0002,289,664
8May 16, 2024 21:1030,60152,545,12425,932,000997,0002,277,376
9May 16, 2024 21:0930,60155,203,48325,932,000997,0002,289,664
10May 16, 2024 21:1030,63656,212,50324,963,0001,997,0002,289,664
11May 16, 2024 21:1030,64849,002,71224,973,0001,997,0002,277,376
12May 16, 2024 21:0930,65554,031,87524,978,0001,998,0002,289,664
13May 16, 2024 21:0930,66049,406,06024,983,0001,998,0002,281,472
14May 16, 2024 21:0930,69348,484,31725,010,0002,000,0002,269,184
15May 16, 2024 21:1030,73248,228,37025,041,0002,003,0002,277,376
16May 16, 2024 21:1030,73851,841,54625,046,0002,003,0002,273,280
17May 16, 2024 21:1030,73947,429,77025,047,0002,003,0002,375,680
18May 16, 2024 21:0930,75556,557,52425,060,0002,004,0002,273,280
19May 16, 2024 21:1030,78249,247,97727,088,00002,289,664
20May 16, 2024 21:0930,80151,244,41225,098,0002,007,0002,273,280
21May 16, 2024 21:1030,82050,934,53525,113,0002,009,0002,289,664
22May 16, 2024 21:0930,82052,960,65425,113,0002,009,0002,289,664
23May 16, 2024 21:0930,82456,593,03225,116,0002,009,0002,289,664
24May 16, 2024 21:0930,83054,054,21125,121,0002,009,0002,277,376