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 listJun 19, 2021 20:33alex3dalex3dScore: 33,965Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 19, 2021 20:3333,73955,456,74028,667,0001,023,0002,265,088
2Jun 19, 2021 20:3333,76654,308,91028,690,0001,024,0002,379,776
3Jun 19, 2021 20:3333,76862,417,10028,692,0001,024,0002,289,664
4Jun 19, 2021 20:3333,77461,028,04529,721,00002,289,664
5Jun 19, 2021 20:3333,80756,796,57428,725,0001,025,0002,523,136
6Jun 19, 2021 20:3333,84156,274,47328,754,0001,026,0002,269,184
7Jun 19, 2021 20:3333,96554,968,61827,897,0001,992,0002,269,184
8Jun 19, 2021 20:3333,96858,216,26127,900,0001,992,0002,269,184
9Jun 19, 2021 20:3333,97555,127,94927,905,0001,993,0002,289,664
10Jun 19, 2021 20:3335,91494,265,65831,604,57902,244,608
11Jun 19, 2021 20:3335,941103,073,65031,628,30702,252,800
12Jun 19, 2021 20:3335,94294,309,29631,628,93102,248,704