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 listJul 24, 2023 14:52gchebanovgchebanovScore: 35,738Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 24, 2023 14:5235,61854,750,41929,322,0002,022,0002,285,568
2Jul 24, 2023 14:5235,66863,060,43429,363,0002,025,0002,281,472
3Jul 24, 2023 14:5235,71051,462,23429,398,0002,027,0002,306,048
4Jul 24, 2023 14:5235,72660,064,42730,425,0001,014,0002,510,848
5Jul 24, 2023 14:5235,72758,119,51630,426,0001,014,0002,359,296
6Jul 24, 2023 14:5235,73557,206,01828,404,0003,043,0002,363,392
7Jul 24, 2023 14:5235,73852,602,25529,420,0002,029,0002,363,392
8Jul 24, 2023 14:5235,75854,198,15730,452,0001,015,0002,285,568
9Jul 24, 2023 14:5235,78352,883,89729,458,0002,031,0002,506,752
10Jul 24, 2023 14:5236,72196,485,61232,314,53602,265,088
11Jul 24, 2023 14:5236,721100,621,18132,314,12502,277,376
12Jul 24, 2023 14:5236,848101,911,36032,426,44402,260,992