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:39Ivan BessonovIvan BessonovScore: 17,711Success
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:4117,01336,584,76113,973,000998,0002,289,664
2May 18, 2024 19:4117,01736,638,62412,979,0001,996,0002,289,664
3May 18, 2024 19:4117,04538,442,18213,000,0002,000,0002,289,664
4May 18, 2024 19:3917,04837,617,53013,002,0002,000,0002,289,664
5May 18, 2024 19:3917,05130,548,44314,005,0001,000,0002,289,664
6May 18, 2024 19:3917,05834,844,85714,011,0001,000,0002,289,664
7May 18, 2024 19:3917,06838,832,52514,019,0001,001,0002,289,664
8May 18, 2024 19:3917,07330,141,94813,021,0002,003,0002,322,432
9May 18, 2024 19:3917,07730,970,77813,025,0002,003,0002,289,664
10May 18, 2024 19:3917,09232,851,21314,039,0001,002,0002,318,336
11May 18, 2024 19:3917,09441,176,51513,038,0002,005,0002,289,664
12May 18, 2024 19:3917,10836,194,77714,052,0001,003,0002,318,336
13May 18, 2024 19:4117,11130,549,46913,051,0002,007,0002,330,624
14May 18, 2024 19:3917,12433,939,06413,060,0002,009,0002,322,432
15May 18, 2024 19:3917,13238,442,74314,071,0001,005,0002,322,432
16May 18, 2024 19:4117,14032,891,64513,072,0002,011,0002,289,664
17May 18, 2024 19:4117,50284,963,01615,401,63602,297,856
18May 18, 2024 19:4117,50276,254,54215,401,78802,174,976
19May 18, 2024 19:3917,71140,125,76514,547,0001,039,0002,326,528
20May 18, 2024 19:3917,77437,991,84914,599,0001,042,0002,289,664
21May 18, 2024 19:3917,88232,363,42214,687,0001,049,0002,285,568
22May 18, 2024 19:3917,90036,428,61914,702,0001,050,0002,289,664
23May 18, 2024 19:4117,90641,380,08214,707,0001,050,0002,289,664
24May 18, 2024 19:3917,90943,492,40014,710,0001,050,0002,289,664
25May 18, 2024 19:3917,94143,081,31115,788,00002,318,336
26May 18, 2024 19:4117,94736,906,98915,793,00002,285,568
27May 18, 2024 19:4117,95348,122,20114,746,0001,053,0002,289,664
28May 18, 2024 19:3917,98662,732,13815,827,53602,179,072
29May 18, 2024 19:4118,05131,007,21614,893,000992,0002,400,256
30May 18, 2024 19:3918,08431,574,15814,920,000994,0002,318,336
31May 18, 2024 19:3918,09482,030,67315,922,77602,187,264
32May 18, 2024 19:4118,32780,957,87616,127,94702,187,264
33May 18, 2024 19:3918,34584,303,78116,143,49002,183,168
34May 18, 2024 19:3918,37173,662,90116,166,66802,187,264
35May 18, 2024 19:3918,38075,219,74416,174,41802,187,264
36May 18, 2024 19:3918,46478,579,77516,247,96202,301,952