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 listMay 18, 2024 11:26Ivan BessonovIvan BessonovScore: 19,926Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2024 11:2619,79047,566,94016,391,0001,024,0002,375,680
2May 18, 2024 11:2619,81137,282,75616,409,0001,025,0002,289,664
3May 18, 2024 11:2619,86939,811,89917,485,00002,289,664
4May 18, 2024 11:2619,89541,048,42916,479,0001,029,0002,289,664
5May 18, 2024 11:2619,89536,793,61616,479,0001,029,0002,379,776
6May 18, 2024 11:2619,90545,225,41616,486,0001,030,0002,379,776
7May 18, 2024 11:2619,92641,816,35616,504,0001,031,0002,289,664
8May 18, 2024 11:2619,95041,173,70916,524,0001,032,0002,289,664
9May 18, 2024 11:2620,82740,728,32816,292,0002,036,0002,289,664
10May 18, 2024 11:2621,41480,800,02018,844,38502,228,224
11May 18, 2024 11:2621,465100,428,31118,889,36402,236,416
12May 18, 2024 11:2621,56682,727,98818,977,95202,224,128