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 05:33Yuriy LyfenkoYuriy LyfenkoScore: 59,129Success
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 05:2959,062106,361,04051,974,45602,220,032
2Jun 18, 2021 05:2959,067116,554,84351,978,75502,220,032
3Jun 18, 2021 05:2959,073103,184,47851,984,47302,232,320
4Jun 18, 2021 05:3359,129118,124,83652,033,90002,215,936
5Jun 18, 2021 05:3359,180105,416,76552,078,26102,224,128
6Jun 18, 2021 05:3359,186108,184,87952,083,72202,215,936