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 19:39Yuriy LyfenkoYuriy LyfenkoScore: 36,676Success
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 19:3631,46094,074,99227,684,99002,215,936
2Jun 27, 2021 19:3931,46390,251,95727,687,51202,228,224
3Jun 27, 2021 19:3631,491104,922,53827,712,24202,220,032
4Jun 27, 2021 19:3631,497103,558,19427,717,40102,215,936
5Jun 27, 2021 19:3931,53697,513,81727,751,78802,228,224
6Jun 27, 2021 19:3931,59587,267,96027,803,28202,220,032
7Jun 27, 2021 19:3936,67055,382,92631,262,0001,008,0002,383,872
8Jun 27, 2021 19:3936,67660,746,74331,267,0001,008,0002,273,280
9Jun 27, 2021 19:3936,68056,672,55932,278,00002,265,088
10Jun 27, 2021 19:3936,71553,094,03432,309,00002,269,184
11Jun 27, 2021 19:3936,72851,186,95731,311,0001,010,0002,494,464
12Jun 27, 2021 19:3936,87360,815,34331,434,0001,014,0002,379,776
13Jun 27, 2021 19:3936,88155,723,05131,441,0001,014,0002,273,280
14Jun 27, 2021 19:3936,89259,363,55731,451,0001,014,0002,269,184
15Jun 27, 2021 19:3936,97659,467,66332,539,00002,269,184