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:49gchebanovgchebanovScore: 36,251Success
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:4936,02257,796,41030,677,0001,022,0002,273,280
2Jul 24, 2023 14:4936,03867,533,15229,667,0002,046,0002,523,136
3Jul 24, 2023 14:4936,09759,072,81428,691,0003,074,0002,273,280
4Jul 24, 2023 14:4936,20856,554,79230,868,000995,0002,293,760
5Jul 24, 2023 14:4936,23159,342,30529,891,0001,992,0002,428,928
6Jul 24, 2023 14:4936,23256,856,04727,899,0003,985,0002,273,280
7Jul 24, 2023 14:4936,25153,852,74428,911,0002,990,0002,527,232
8Jul 24, 2023 14:4936,26057,627,70628,918,0002,991,0002,527,232
9Jul 24, 2023 14:4936,33959,987,39130,979,000999,0002,363,392
10Jul 24, 2023 14:4936,99494,241,88232,554,77502,260,992
11Jul 24, 2023 14:4937,04094,321,75032,594,76002,244,608
12Jul 24, 2023 14:4937,124141,359,91132,668,95802,252,800