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:50Andrey TsvetkovAndrey TsvetkovScore: 2,374,952Success
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:502,351,7862,135,063,3952,069,571,42902,191,360
2Jun 17, 2021 21:502,360,7242,138,709,1892,077,436,69202,191,360
3Jun 17, 2021 21:502,368,5032,145,961,2662,084,282,39502,195,456
4Jun 17, 2021 21:502,374,9522,155,601,1302,089,957,41802,195,456
5Jun 17, 2021 21:502,374,9692,157,674,8202,089,973,06202,191,360
6Jun 17, 2021 21:502,375,2922,156,847,5062,090,256,89002,191,360