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 18, 2021 14:39Yuriy LyfenkoYuriy LyfenkoScore: 58,734Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 18, 2021 14:4057,948114,638,17150,994,11502,220,032
2Jun 18, 2021 14:4058,188103,129,83051,205,78102,244,608
3Jun 18, 2021 14:4058,368103,130,69551,364,03302,220,032
4Jun 18, 2021 14:3958,734113,099,93351,685,97502,220,032
5Jun 18, 2021 14:3958,778112,625,55251,724,96902,220,032
6Jun 18, 2021 14:3958,942108,841,76451,868,62802,228,224