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 listNov 29, 2022 07:52apuxbtapuxbtScore: 34,360Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 29, 2022 07:5234,23359,176,25328,117,0002,008,0002,392,064
2Nov 29, 2022 07:5234,25556,138,40728,135,0002,009,0002,392,064
3Nov 29, 2022 07:5234,30156,672,90429,179,0001,006,0002,383,872
4Nov 29, 2022 07:5234,31758,649,80828,186,0002,013,0002,379,776
5Nov 29, 2022 07:5234,32364,134,42328,191,0002,013,0002,269,184
6Nov 29, 2022 07:5234,35859,145,69429,228,0001,007,0002,265,088
7Nov 29, 2022 07:5234,36060,791,36128,222,0002,015,0002,265,088
8Nov 29, 2022 07:5234,44958,688,50030,315,00002,265,088
9Nov 29, 2022 07:5234,46757,378,40729,320,0001,011,0002,265,088
10Nov 29, 2022 07:5235,341109,525,83031,100,30302,244,608
11Nov 29, 2022 07:5235,34799,472,65031,105,25002,236,416
12Nov 29, 2022 07:5235,367109,504,15131,123,20602,248,704