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 27, 2021 05:24Yuriy LyfenkoYuriy LyfenkoError
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2021 05:2400000Error: expected "51115150672469 ", got "51115150672138 "
2Jun 27, 2021 05:2433,04397,227,25129,077,95402,191,360
3Jun 27, 2021 05:2433,11083,790,78429,136,57002,187,264
4Jun 27, 2021 05:2433,149104,866,93629,171,16902,191,360
5Jun 27, 2021 05:2433,158106,523,48929,178,86602,183,168
6Jun 27, 2021 05:2433,16993,837,72329,188,48402,195,456
7Jun 27, 2021 05:2433,298117,986,52429,302,50502,195,456