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 5, 2024 08:55Ivan BessonovIvan BessonovScore: 46,091Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 5, 2024 08:5545,82465,467,25440,325,00002,265,088
2May 5, 2024 08:5545,85363,818,79239,343,0001,008,0002,269,184
3May 5, 2024 08:5545,88461,407,66839,369,0001,009,0002,289,664
4May 5, 2024 08:5545,95167,940,70839,427,0001,010,0002,265,088
5May 5, 2024 08:5545,97070,794,74740,454,00002,289,664
6May 5, 2024 08:5546,03366,603,34539,497,0001,012,0002,289,664
7May 5, 2024 08:5546,09163,457,35040,560,00002,289,664
8May 5, 2024 08:5546,11165,320,03439,564,0001,014,0002,289,664
9May 5, 2024 08:5546,18967,825,35739,630,0001,016,0002,269,184
10May 5, 2024 08:5546,317107,499,99340,758,71802,260,992
11May 5, 2024 08:5546,327117,050,87340,768,10902,256,896
12May 5, 2024 08:5546,466104,097,70140,889,75802,260,992