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 4, 2023 12:18Robert BurkeRobert BurkeScore: 22,058Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 4, 2023 12:1818,42267,516,81916,211,77802,228,224
2Oct 4, 2023 12:1818,43980,569,81316,226,62702,252,800
3Oct 4, 2023 12:1818,47264,911,18116,255,37102,236,416
4Oct 4, 2023 12:1822,00640,877,99419,365,00002,490,368
5Oct 4, 2023 12:1822,01943,569,25618,358,0001,019,0002,392,064
6Oct 4, 2023 12:1822,05236,207,71519,406,00002,535,424
7Oct 4, 2023 12:1822,05839,301,08219,411,00002,396,160
8Oct 4, 2023 12:1822,09540,772,72619,444,00002,396,160
9Oct 4, 2023 12:1822,10638,008,07019,453,00002,392,064
10Oct 4, 2023 12:1822,13037,103,56719,474,00002,535,424
11Oct 4, 2023 12:1822,13535,530,44719,479,00002,400,256
12Oct 4, 2023 12:1822,14842,834,22619,490,00002,535,424