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 10:53matsuoka-601matsuoka-601Score: 39,941Success
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 10:5339,70064,447,86030,944,0003,992,0002,306,048
2Jul 22, 2023 10:5339,73366,874,20929,970,0004,995,0002,383,872
3Jul 22, 2023 10:5339,77866,898,44930,005,0005,000,0002,408,448
4Jul 22, 2023 10:5339,85060,387,33529,057,0006,011,0002,351,104
5Jul 22, 2023 10:5339,89461,141,16230,092,0005,015,0002,359,296
6Jul 22, 2023 10:5339,92667,232,53131,120,0004,015,0002,281,472
7Jul 22, 2023 10:5339,94167,194,14730,127,0005,021,0002,330,624
8Jul 22, 2023 10:5339,95489,375,71935,159,70802,224,128
9Jul 22, 2023 10:5339,989102,838,25335,190,29802,199,552
10Jul 22, 2023 10:5340,01460,578,85931,188,0004,024,0002,273,280
11Jul 22, 2023 10:5340,042102,812,51435,236,97302,207,744
12Jul 22, 2023 10:5340,21668,540,19830,335,0005,055,0002,306,048