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 21, 2023 10:32matsuoka-601matsuoka-601Score: 49,897Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 21, 2023 10:3249,74075,667,03941,736,0002,035,0002,289,664
2Jul 21, 2023 10:3249,87068,640,50239,897,0003,989,0002,469,888
3Jul 21, 2023 10:3249,876111,804,66543,890,79202,191,360
4Jul 21, 2023 10:3249,87874,417,02140,901,0002,992,0002,449,408
5Jul 21, 2023 10:3249,88070,625,09839,904,0003,990,0002,445,312
6Jul 21, 2023 10:3249,88473,567,65239,908,0003,990,0002,289,664
7Jul 21, 2023 10:3249,897110,566,61443,909,22902,195,456
8Jul 21, 2023 10:3249,90578,312,77841,920,0001,996,0002,469,888
9Jul 21, 2023 10:3249,97361,412,61439,979,0003,997,0002,301,952
10Jul 21, 2023 10:3249,993113,057,12043,993,74902,203,648
11Jul 21, 2023 10:3250,02764,328,17840,022,0004,002,0002,289,664
12Jul 21, 2023 10:3250,03569,438,92441,029,0003,002,0002,289,664