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 30, 2022 13:46Yuriy LyfenkoYuriy LyfenkoScore: 38,825Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 30, 2022 13:4630,448107,113,30526,794,26602,220,032
2Jul 30, 2022 13:4630,48293,851,36726,823,84902,228,224
3Jul 30, 2022 13:4630,50692,184,65726,844,86702,215,936
4Jul 30, 2022 13:4638,79360,073,56233,134,0001,004,0002,269,184
5Jul 30, 2022 13:4638,81160,771,33432,145,0002,009,0002,269,184
6Jul 30, 2022 13:4638,81861,120,83632,151,0002,009,0002,269,184
7Jul 30, 2022 13:4638,82562,667,86633,162,0001,004,0002,269,184
8Jul 30, 2022 13:4638,84759,719,93733,180,0001,005,0002,269,184
9Jul 30, 2022 13:4638,91357,754,00233,236,0001,007,0002,367,488
10Jul 30, 2022 13:4638,98655,682,75933,299,0001,009,0002,371,584
11Jul 30, 2022 13:4639,02755,695,49434,344,00002,269,184
12Jul 30, 2022 13:4639,31356,890,67733,578,0001,017,0002,379,776