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 18, 2024 19:36Ivan BessonovIvan BessonovScore: 17,431Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2024 19:3616,94839,577,89512,926,0001,988,0002,301,952
2May 18, 2024 19:3616,97234,902,31312,944,0001,991,0002,289,664
3May 18, 2024 19:3616,98034,959,15412,950,0001,992,0002,289,664
4May 18, 2024 19:3617,01735,633,82712,979,0001,996,0002,306,048
5May 18, 2024 19:3617,04040,823,64512,996,0001,999,0002,306,048
6May 18, 2024 19:3617,04837,670,27614,002,0001,000,0002,289,664
7May 18, 2024 19:3617,06831,823,58013,018,0002,002,0002,297,856
8May 18, 2024 19:3617,07630,498,68113,024,0002,003,0002,433,024
9May 18, 2024 19:3617,09332,730,59614,040,0001,002,0002,289,664
10May 18, 2024 19:3617,09842,235,95813,040,0002,006,0002,289,664
11May 18, 2024 19:3617,11433,583,62113,052,0002,008,0002,289,664
12May 18, 2024 19:3617,39780,931,80115,309,78102,289,664
13May 18, 2024 19:3617,43191,086,70515,339,15902,297,856
14May 18, 2024 19:3618,06031,765,98613,907,0001,986,0002,289,664
15May 18, 2024 19:3618,06445,974,06013,909,0001,987,0002,289,664
16May 18, 2024 19:3618,06742,114,81813,912,0001,987,0002,289,664
17May 18, 2024 19:3618,07035,612,47715,902,00002,289,664
18May 18, 2024 19:3618,09732,079,28915,925,00002,289,664
19May 18, 2024 19:3618,12741,642,86413,958,0001,994,0002,289,664
20May 18, 2024 19:3618,14041,447,25113,968,0001,995,0002,289,664
21May 18, 2024 19:3618,17685,029,14115,994,97502,289,664
22May 18, 2024 19:3618,37696,243,04416,171,06202,289,664
23May 18, 2024 19:3618,41088,144,71516,200,60602,293,760
24May 18, 2024 19:3618,538109,592,83416,313,50402,285,568