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 15:05Andrey TsvetkovAndrey TsvetkovScore: 2,057,385Success
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 15:022,045,7091,855,883,6531,800,224,24202,322,432
2Jun 17, 2021 15:052,053,2591,874,116,6751,806,867,99102,207,744
3Jun 17, 2021 15:022,056,2181,869,151,4831,809,471,57002,256,896
4Jun 17, 2021 15:052,057,3851,861,249,2011,810,498,87502,240,512
5Jun 17, 2021 15:022,061,0501,866,899,1911,813,724,11302,281,472
6Jun 17, 2021 15:052,064,2971,886,608,7571,816,581,51102,203,648