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 25, 2023 20:29gchebanovgchebanovScore: 32,796Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 25, 2023 20:2932,57257,595,95226,616,0002,047,0002,371,584
2Jul 25, 2023 20:2932,57555,784,36227,643,0001,023,0002,289,664
3Jul 25, 2023 20:2932,62060,024,76526,656,0002,050,0002,281,472
4Jul 25, 2023 20:2932,68653,334,66627,737,0001,027,0002,375,680
5Jul 25, 2023 20:2932,69555,500,70026,717,0002,055,0002,367,488
6Jul 25, 2023 20:2932,69560,276,49926,717,0002,055,0002,289,664
7Jul 25, 2023 20:2932,79692,447,69628,860,68702,224,128
8Jul 25, 2023 20:2932,82357,267,17126,892,0001,992,0002,289,664
9Jul 25, 2023 20:2932,82659,041,43725,899,0002,988,0002,289,664
10Jul 25, 2023 20:2932,83454,794,02325,905,0002,989,0002,289,664
11Jul 25, 2023 20:2933,020102,013,62529,058,01402,220,032
12Jul 25, 2023 20:2933,09786,158,10129,125,71902,220,032