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 19:35Andrey TsvetkovAndrey TsvetkovScore: 9,358,521Success
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 19:359,331,2438,275,322,7738,211,493,40302,191,360
2Jun 17, 2021 19:359,358,5218,311,562,4708,235,498,59102,199,552
3Jun 17, 2021 19:359,372,6968,305,992,3598,247,972,23202,195,456