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 13:55Ivan BessonovIvan BessonovScore: 15,963Success
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 13:5515,40033,528,57212,510,0001,042,0002,338,816
2May 20, 2024 13:5215,41430,549,23913,564,00002,338,816
3May 20, 2024 13:5215,43530,245,67512,539,0001,044,0002,330,624
4May 20, 2024 13:5215,44334,174,41212,545,0001,045,0002,289,664
5May 20, 2024 13:5515,45536,895,69212,554,0001,046,0002,334,720
6May 20, 2024 13:5215,45934,681,03512,558,0001,046,0002,347,008
7May 20, 2024 13:5215,49340,249,98613,634,00002,334,720
8May 20, 2024 13:5215,52744,607,44412,613,0001,051,0002,338,816
9May 20, 2024 13:5515,53130,785,37812,616,0001,051,0002,338,816
10May 20, 2024 13:5515,53531,700,92612,620,0001,051,0002,289,664
11May 20, 2024 13:5215,55932,138,32612,639,0001,053,0002,289,664
12May 20, 2024 13:5515,95931,908,72113,041,0001,003,0002,338,816
13May 20, 2024 13:5215,96382,187,17614,047,67802,199,552
14May 20, 2024 13:5215,98881,908,14714,069,86302,195,456
15May 20, 2024 13:5516,01661,531,80314,093,79802,256,896
16May 20, 2024 13:5516,04881,689,05314,122,60902,199,552
17May 20, 2024 13:5216,05356,121,27814,126,89402,195,456
18May 20, 2024 13:5516,07331,043,80912,124,0002,020,0002,433,024
19May 20, 2024 13:5516,09234,634,57612,138,0002,023,0002,342,912
20May 20, 2024 13:5516,09962,294,54714,167,39802,195,456
21May 20, 2024 13:5216,12035,431,80812,160,0002,026,0002,334,720
22May 20, 2024 13:5516,20941,119,30112,227,0002,037,0002,342,912
23May 20, 2024 13:5216,25635,440,04212,262,0002,043,0002,289,664
24May 20, 2024 13:5516,45238,076,48413,444,0001,034,0002,289,664