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 1, 2024 15:04Yuriy LyfenkoYuriy LyfenkoScore: 27,660Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 1, 2024 15:0427,49451,058,10722,179,0002,016,0002,392,064
2May 1, 2024 14:4427,55646,476,31223,239,0001,010,0002,269,184
3May 1, 2024 14:4427,55846,429,61023,241,0001,010,0002,387,968
4May 1, 2024 14:4427,56347,777,10522,234,0002,021,0002,265,088
5May 1, 2024 14:4427,56947,481,01822,240,0002,021,0002,527,232
6May 1, 2024 15:0427,57446,340,27023,254,0001,011,0002,392,064
7May 1, 2024 14:4427,61150,045,32924,298,00002,265,088
8May 1, 2024 15:0427,61545,277,13222,276,0002,025,0002,527,232
9May 1, 2024 15:0427,63150,080,38124,315,00002,527,232
10May 1, 2024 15:0427,63546,293,12724,319,00002,392,064
11May 1, 2024 14:4427,63548,434,95624,319,00002,265,088
12May 1, 2024 15:0427,64247,228,01123,312,0001,013,0002,265,088
13May 1, 2024 14:4427,66055,627,53923,327,0001,014,0002,265,088
14May 1, 2024 15:0427,67449,053,11823,339,0001,014,0002,265,088
15May 1, 2024 14:4427,67488,362,85724,352,87002,228,224
16May 1, 2024 14:4427,68050,246,09724,358,00002,265,088
17May 1, 2024 15:0427,69951,029,47924,375,00002,490,368
18May 1, 2024 14:4427,711103,252,03824,386,06302,232,320
19May 1, 2024 14:4427,72046,224,24423,378,0001,016,0002,527,232
20May 1, 2024 15:0427,75394,022,79424,422,21802,244,608
21May 1, 2024 15:0427,75995,011,50524,428,34302,236,416
22May 1, 2024 15:0427,77386,073,10624,440,41702,232,320
23May 1, 2024 15:0427,80151,022,69824,465,00002,527,232
24May 1, 2024 14:4427,84397,781,54024,501,76002,236,416