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 18, 2021 08:44Sergey StreminSergey StreminScore: 522,251Success
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:21521,746516,578,741459,136,19502,199,552
2Jun 17, 2021 21:21521,950519,614,868459,315,94202,256,896
3Jun 18, 2021 08:44522,011523,399,562459,369,68502,195,456
4Jun 17, 2021 21:22522,098519,907,637459,445,93302,191,360
5Jun 17, 2021 21:22522,251520,488,626459,580,54002,195,456
6Jun 18, 2021 08:44522,264523,930,987459,592,35102,191,360
7Jun 18, 2021 08:44522,299531,979,990459,623,31102,199,552
8Jun 17, 2021 21:21522,418528,279,886459,727,62202,191,360
9Jun 17, 2021 21:22522,451530,001,621459,756,57602,199,552