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 22, 2023 06:49matsuoka-601matsuoka-601Score: 39,889Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 22, 2023 06:4939,65361,881,54129,910,0004,985,0002,306,048
2Jul 22, 2023 06:4939,74260,313,71031,976,0002,997,0002,457,600
3Jul 22, 2023 06:4939,75765,406,79929,988,0004,998,0002,281,472
4Jul 22, 2023 06:4939,83261,642,79030,045,0005,007,0002,269,184
5Jul 22, 2023 06:4939,84862,402,01531,059,0004,007,0002,514,944
6Jul 22, 2023 06:4939,85362,685,78330,061,0005,010,0002,326,528
7Jul 22, 2023 06:4939,88963,564,85531,091,0004,011,0002,265,088
8Jul 22, 2023 06:4939,91962,753,50530,111,0005,018,0002,269,184
9Jul 22, 2023 06:4939,94061,702,26731,131,0004,016,0002,330,624
10Jul 22, 2023 06:4940,021100,550,28135,218,09802,199,552
11Jul 22, 2023 06:4940,06994,931,16035,260,64202,318,336
12Jul 22, 2023 06:4940,080105,971,19035,270,10202,310,144