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 listOct 3, 2023 11:14apuxbtapuxbtScore: 46,775Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 3, 2023 11:1445,477100,484,86640,020,06402,203,648
2Oct 3, 2023 11:1445,543106,412,15140,077,45502,207,744
3Oct 3, 2023 11:1445,579111,471,42740,109,91902,203,648
4Oct 3, 2023 11:1446,65263,769,25139,052,0002,002,0002,293,760
5Oct 3, 2023 11:1446,70266,021,39139,094,0002,004,0002,486,272
6Oct 3, 2023 11:1446,74268,036,67840,130,0001,003,0002,293,760
7Oct 3, 2023 11:1446,77565,735,31739,155,0002,007,0002,293,760
8Oct 3, 2023 11:1446,79468,272,35240,175,0001,004,0002,293,760
9Oct 3, 2023 11:1446,80663,752,49239,180,0002,009,0002,486,272
10Oct 3, 2023 11:1446,85063,689,80039,217,0002,011,0002,293,760
11Oct 3, 2023 11:1446,94364,357,20239,295,0002,015,0002,293,760
12Oct 3, 2023 11:1447,03962,464,47240,385,0001,009,0002,289,664