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 12:29matsuoka-601matsuoka-601Score: 43,883Success
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 12:2943,63964,408,64132,339,0006,063,0002,486,272
2Jul 21, 2023 12:2943,77370,487,75335,479,0003,041,0002,465,792
3Jul 21, 2023 12:2943,83566,085,64436,545,0002,030,0002,514,944
4Jul 21, 2023 12:2943,84760,784,93534,524,0004,061,0002,437,120
5Jul 21, 2023 12:2943,84860,368,27335,540,0003,046,0002,514,944
6Jul 21, 2023 12:2943,85561,939,41034,530,0004,062,0002,387,968
7Jul 21, 2023 12:2943,88360,856,11035,569,0003,048,0002,490,368
8Jul 21, 2023 12:2943,94165,073,56634,598,0004,070,0002,494,464
9Jul 21, 2023 12:2944,16968,399,72633,886,0004,983,0002,498,560
10Jul 21, 2023 12:2944,497103,474,54039,157,59302,199,552
11Jul 21, 2023 12:2944,671104,147,69039,310,39502,220,032
12Jul 21, 2023 12:2944,759109,777,13939,387,60002,269,184