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 14:27Andrey TsvetkovAndrey TsvetkovScore: 2,035,861Success
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 14:272,025,5101,834,015,3771,782,448,54602,277,376
2Jun 20, 2021 14:272,035,8611,851,573,9341,791,557,70302,293,760
3Jun 20, 2021 14:272,043,1031,859,591,9321,797,930,80302,236,416