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 20, 2021 12:45Yurkov AlekseyYurkov AlekseyScore: 2,073,628Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 20, 2021 12:542,065,0721,868,551,9531,817,263,61202,252,800
2Jun 20, 2021 12:432,066,2261,874,188,8411,818,278,88002,260,992
3Jun 20, 2021 12:452,069,7011,890,863,9481,821,337,26102,256,896
4Jun 20, 2021 12:542,072,0331,882,005,3711,823,388,83602,252,800
5Jun 20, 2021 12:432,073,6281,879,878,9511,824,792,66602,244,608
6Jun 20, 2021 12:542,075,4731,879,586,0621,826,416,24702,260,992
7Jun 20, 2021 12:452,076,3201,880,923,0591,827,161,61102,248,704
8Jun 20, 2021 12:452,080,5181,906,927,9111,830,856,15202,256,896
9Jun 20, 2021 12:432,080,7681,899,325,2351,831,076,20502,252,800