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 23, 2023 09:29matsuoka-601matsuoka-601Score: 28,390Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 23, 2023 09:2928,21282,820,88224,826,89602,314,240
2Jul 23, 2023 09:2928,27650,583,93421,897,0002,986,0002,465,792
3Jul 23, 2023 09:2928,281105,083,18224,887,71902,269,184
4Jul 23, 2023 09:2928,31852,136,61021,930,0002,990,0002,498,560
5Jul 23, 2023 09:2928,33555,057,20922,941,0001,994,0002,453,504
6Jul 23, 2023 09:2928,33691,065,90824,935,26802,285,568
7Jul 23, 2023 09:2928,39051,260,03322,985,0001,998,0002,514,944
8Jul 23, 2023 09:2928,41151,469,04421,002,0004,000,0002,277,376
9Jul 23, 2023 09:2928,41551,673,60921,005,0004,000,0002,490,368
10Jul 23, 2023 09:2928,45556,183,06821,034,0004,006,0002,297,856
11Jul 23, 2023 09:2928,51151,467,63820,072,0005,018,0002,314,240
12Jul 23, 2023 09:2928,62849,160,34720,155,0005,038,0002,318,336