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 21:46Andrey TsvetkovAndrey TsvetkovScore: 2,368,519Success
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 21:462,361,1482,136,847,7502,077,810,58402,191,360
2Jun 17, 2021 21:462,368,5192,143,828,4322,084,297,12702,195,456
3Jun 17, 2021 21:462,377,7212,151,477,9232,092,394,08202,195,456