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 17, 2021 15:14Yuriy LyfenkoYuriy LyfenkoScore: 2,051,486Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 17, 2021 15:142,050,9591,869,836,2231,804,843,78402,236,416
2Jun 17, 2021 15:142,051,4861,860,043,7621,805,307,74602,314,240
3Jun 17, 2021 15:142,055,3341,866,565,7811,808,694,33502,281,472