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 16:21Andrey TsvetkovAndrey TsvetkovScore: 2,036,441Success
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:352,031,9261,850,842,6521,788,095,22802,301,952
2Jun 17, 2021 15:352,033,7961,857,623,7541,789,740,57102,301,952
3Jun 17, 2021 16:012,034,2451,853,833,7031,790,135,41002,293,760
4Jun 17, 2021 16:012,035,9111,849,452,3341,791,601,49502,318,336
5Jun 17, 2021 16:212,036,4411,850,884,2601,792,068,31302,228,224
6Jun 17, 2021 16:212,036,9861,852,892,3601,792,547,79002,179,072
7Jun 17, 2021 16:012,038,9221,855,997,8631,794,251,52602,224,128
8Jun 17, 2021 16:212,046,7231,865,549,8881,801,116,67102,195,456
9Jun 17, 2021 15:352,047,3191,854,648,6061,801,640,46502,215,936