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:30matsuoka-601matsuoka-601Score: 44,176Success
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:3043,58098,736,78538,350,45302,314,240
2Jul 21, 2023 12:3043,706100,552,62838,461,36202,207,744
3Jul 21, 2023 12:3044,01765,186,27636,697,0002,038,0002,502,656
4Jul 21, 2023 12:3044,01864,446,05734,659,0004,077,0002,363,392
5Jul 21, 2023 12:3044,03664,550,72734,673,0004,079,0002,490,368
6Jul 21, 2023 12:3044,132117,737,14438,835,87002,220,032
7Jul 21, 2023 12:3044,17665,430,98734,888,0003,987,0002,363,392
8Jul 21, 2023 12:3044,19164,856,87435,897,0002,991,0002,437,120
9Jul 21, 2023 12:3044,19469,309,33732,908,0005,983,0002,306,048
10Jul 21, 2023 12:3044,26365,957,30733,958,0004,993,0002,269,184
11Jul 21, 2023 12:3044,30067,172,95735,986,0002,998,0002,514,944
12Jul 21, 2023 12:3044,42265,555,63835,082,0004,009,0002,490,368