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 27, 2021 02:41Yuriy LyfenkoYuriy LyfenkoScore: 44,518Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2021 02:4142,91394,798,73437,763,87502,211,840
2Jun 27, 2021 02:4142,936104,294,07937,783,89102,220,032
3Jun 27, 2021 02:4142,999102,506,42137,839,32602,228,224
4Jun 27, 2021 02:4144,46470,555,81837,122,0002,006,0002,379,776
5Jun 27, 2021 02:4144,48463,966,67638,143,0001,003,0002,269,184
6Jun 27, 2021 02:4144,49370,847,61637,147,0002,007,0002,375,680
7Jun 27, 2021 02:4144,51869,516,59237,167,0002,009,0002,269,184
8Jun 27, 2021 02:4144,59361,655,11237,230,0002,012,0002,269,184
9Jun 27, 2021 02:4144,59868,388,70838,240,0001,006,0002,375,680
10Jun 27, 2021 02:4144,62068,614,54239,266,00002,379,776
11Jun 27, 2021 02:4144,67861,951,32338,309,0001,008,0002,371,584
12Jun 27, 2021 02:4144,70166,952,24839,337,00002,375,680