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:59Andrey TsvetkovAndrey TsvetkovScore: 7,364,002Success
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:597,338,6356,513,980,2406,457,998,58302,252,800
2Jun 17, 2021 19:597,364,0026,552,374,4276,480,321,39302,252,800
3Jun 17, 2021 19:597,380,3696,565,712,1436,494,725,02902,244,608