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 9, 2024 07:20Ivan BessonovIvan BessonovScore: 48,848Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 9, 2024 07:2044,02895,590,85138,744,34602,252,800
2May 9, 2024 11:5144,041115,105,56738,755,93802,269,184
3May 9, 2024 07:2044,053111,307,49638,766,54002,252,800
4May 9, 2024 11:5144,223100,993,28238,916,02902,252,800
5May 9, 2024 11:5144,307108,516,27538,989,79002,265,088
6May 9, 2024 07:2044,45097,600,88939,116,10302,269,184
7May 9, 2024 11:5148,70068,545,29340,863,0001,993,0002,289,664
8May 9, 2024 11:5148,72772,404,88642,880,00002,289,664
9May 9, 2024 11:5148,74069,637,00942,891,00002,289,664
10May 9, 2024 11:5148,74271,390,19841,896,000997,0002,289,664
11May 9, 2024 11:5148,77465,956,63040,925,0001,996,0002,281,472
12May 9, 2024 11:5148,80966,604,04840,955,0001,997,0002,387,968
13May 9, 2024 07:2048,84870,487,00241,987,000999,0002,281,472
14May 9, 2024 07:2048,86974,120,12641,005,0002,000,0002,289,664
15May 9, 2024 11:5148,87367,288,38041,008,0002,000,0002,281,472
16May 9, 2024 11:5148,87567,695,32342,010,0001,000,0002,273,280
17May 9, 2024 07:2048,88070,090,06642,014,0001,000,0002,289,664
18May 9, 2024 07:2048,88164,893,99141,015,0002,000,0002,273,280
19May 9, 2024 07:2048,88971,140,02842,022,0001,000,0002,273,280
20May 9, 2024 07:2048,91868,061,98341,046,0002,002,0002,289,664
21May 9, 2024 07:2048,94767,059,84641,070,0002,003,0002,289,664
22May 9, 2024 07:2048,95064,777,20141,073,0002,003,0002,273,280
23May 9, 2024 07:2048,95867,710,06042,082,0001,001,0002,289,664
24May 9, 2024 11:5148,99167,534,73141,107,0002,005,0002,273,280