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 listOct 3, 2023 01:00apuxbtapuxbtScore: 30,290Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 3, 2023 01:0029,75792,581,89426,186,15702,203,648
2Oct 3, 2023 01:0029,78684,464,59126,211,44002,207,744
3Oct 3, 2023 01:0029,81795,260,44826,238,53502,207,744
4Oct 3, 2023 01:0030,08053,945,05625,452,0001,018,0002,293,760
5Oct 3, 2023 01:0030,26851,687,59326,636,00002,293,760
6Oct 3, 2023 01:0030,28448,876,04725,625,0001,025,0002,293,760
7Oct 3, 2023 01:0030,29055,675,71225,630,0001,025,0002,482,176
8Oct 3, 2023 01:0030,34152,216,07325,674,0001,026,0002,494,464
9Oct 3, 2023 01:0030,34764,835,65425,678,0001,027,0002,293,760
10Oct 3, 2023 01:0030,36652,719,39325,695,0001,027,0002,293,760
11Oct 3, 2023 01:0030,38954,236,73625,714,0001,028,0002,293,760
12Oct 3, 2023 01:0030,67558,660,33925,995,000999,0002,486,272