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 26, 2021 20:29Yuriy LyfenkoYuriy LyfenkoScore: 35,344Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 26, 2021 20:2935,23192,442,80131,003,00202,187,264
2Jun 26, 2021 20:2935,261110,450,41331,029,70802,199,552
3Jun 26, 2021 20:2935,27054,814,54230,037,0001,001,0002,523,136
4Jun 26, 2021 20:2935,28199,550,55131,047,03302,191,360
5Jun 26, 2021 20:2935,28257,506,41029,045,0002,003,0002,527,232
6Jun 26, 2021 20:2935,30157,923,18329,061,0002,004,0002,527,232
7Jun 26, 2021 20:2935,34462,188,13829,097,0002,006,0002,527,232
8Jun 26, 2021 20:2935,37460,511,98129,121,0002,008,0002,527,232
9Jun 26, 2021 20:2935,42358,198,16428,156,0003,016,0002,334,720
10Jun 26, 2021 20:2935,42853,982,10929,166,0002,011,0002,334,720
11Jun 26, 2021 20:2935,44256,571,09428,171,0003,018,0002,531,328
12Jun 26, 2021 20:2935,46554,778,70729,196,0002,013,0002,314,240