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 17, 2021 18:53Andrey TsvetkovAndrey TsvetkovScore: 18,604,695Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 17, 2021 18:5718,544,30816,416,240,38016,318,990,83002,195,456
2Jun 17, 2021 18:5718,567,59616,401,347,66916,339,484,16102,195,456
3Jun 17, 2021 19:2218,579,17316,412,770,56816,349,671,88802,199,552
4Jun 17, 2021 18:5318,587,80016,422,361,45516,357,263,87302,199,552
5Jun 17, 2021 19:2218,604,69516,437,721,16216,372,131,47002,195,456
6Jun 17, 2021 18:5318,648,93216,479,554,44816,411,060,31302,191,360
7Jun 17, 2021 18:5718,655,38916,470,645,41016,416,742,63302,195,456
8Jun 17, 2021 18:5318,663,47316,497,589,18716,423,856,58302,252,800
9Jun 17, 2021 19:2218,686,98616,506,337,41416,444,547,42402,199,552