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 16:36Yuriy LyfenkoYuriy LyfenkoScore: 947,886Success
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 16:33942,741909,754,768829,611,89102,306,048
2Jun 17, 2021 16:42943,272896,179,922830,079,27002,306,048
3Jun 17, 2021 16:33943,553881,007,038830,326,73802,293,760
4Jun 17, 2021 16:33943,922883,646,300830,651,49102,179,072
5Jun 17, 2021 16:42944,813897,132,191831,435,78102,187,264
6Jun 17, 2021 16:42946,936889,912,328833,303,29602,297,856
7Jun 17, 2021 16:36947,886888,068,318834,139,42902,306,048
8Jun 17, 2021 16:42947,950894,158,403834,196,29802,301,952
9Jun 17, 2021 16:42951,451888,050,113837,277,21102,179,072
10Jun 17, 2021 16:36952,424887,018,074838,133,18102,179,072
11Jun 17, 2021 16:42952,470911,944,349838,173,27102,174,976
12Jun 17, 2021 16:36955,126894,901,505840,511,21702,174,976