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 02:35Yuriy LyfenkoYuriy LyfenkoScore: 59,291Success
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 02:3459,132108,560,01252,036,18602,228,224
2Jun 18, 2021 02:3459,212105,577,91152,106,45602,236,416
3Jun 18, 2021 02:3559,252137,974,04452,141,52102,215,936
4Jun 18, 2021 02:3559,291118,211,20852,176,43502,224,128
5Jun 18, 2021 02:3559,299111,054,71552,182,96202,232,320
6Jun 18, 2021 02:3459,451104,369,83852,316,74002,215,936