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 19, 2024 08:05Ivan BessonovIvan BessonovScore: 16,500Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 19, 2024 08:0616,34830,467,85813,359,0001,027,0002,289,664
2May 19, 2024 08:0816,38030,152,75113,385,0001,029,0002,289,664
3May 19, 2024 08:0616,38931,742,72413,392,0001,030,0002,342,912
4May 19, 2024 08:0516,39836,594,87013,400,0001,030,0002,342,912
5May 19, 2024 08:0516,40745,115,50613,407,0001,031,0002,334,720
6May 19, 2024 08:0516,41535,603,19313,414,0001,031,0002,289,664
7May 19, 2024 08:0616,41737,379,18814,447,00002,334,720
8May 19, 2024 08:0616,43138,081,29813,427,0001,032,0002,289,664
9May 19, 2024 08:0816,45337,183,89214,479,00002,330,624
10May 19, 2024 08:0616,45533,683,28114,480,00002,289,664
11May 19, 2024 08:0816,45640,765,73113,447,0001,034,0002,289,664
12May 19, 2024 08:0816,45631,638,10713,447,0001,034,0002,330,624
13May 19, 2024 08:0816,45730,087,03013,448,0001,034,0002,342,912
14May 19, 2024 08:0516,45731,455,67614,482,00002,322,432
15May 19, 2024 08:0816,47229,988,64113,460,0001,035,0002,338,816
16May 19, 2024 08:0616,47231,898,91013,460,0001,035,0002,289,664
17May 19, 2024 08:0516,47445,955,21513,462,0001,035,0002,289,664
18May 19, 2024 08:0616,48334,523,58413,469,0001,036,0002,289,664
19May 19, 2024 08:0616,50033,771,61613,483,0001,037,0002,289,664
20May 19, 2024 08:0516,51731,342,93413,497,0001,038,0002,334,720
21May 19, 2024 08:0816,54034,704,22413,516,0001,039,0002,289,664
22May 19, 2024 08:0516,55631,400,44614,569,00002,289,664
23May 19, 2024 08:0816,55835,694,11114,571,00002,289,664
24May 19, 2024 08:0816,56634,118,49314,578,00002,289,664
25May 19, 2024 08:0517,09836,773,80413,040,0002,006,0002,289,664
26May 19, 2024 08:0817,11789,861,41915,063,35602,187,264
27May 19, 2024 08:0517,11834,916,78213,056,0002,008,0002,289,664
28May 19, 2024 08:0617,31343,213,37313,204,0002,031,0002,338,816
29May 19, 2024 08:0617,40768,894,03815,318,57302,187,264
30May 19, 2024 08:0617,47559,147,54915,377,87602,195,456
31May 19, 2024 08:0617,49480,778,19915,394,86202,191,360
32May 19, 2024 08:0517,54663,650,44615,440,57102,191,360
33May 19, 2024 08:0817,54875,877,75315,442,31102,179,072
34May 19, 2024 08:0517,56081,767,63915,452,44902,252,800
35May 19, 2024 08:0517,628107,864,04815,512,25002,318,336
36May 19, 2024 08:0817,66861,324,50115,547,83302,314,240