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:22Yuriy 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:2200000Error: expected "50862650017080 ", got "50863622832920 "
2Jun 27, 2021 05:2200000Error: expected "51035705195901 ", got "51036614842312 "
3Jun 27, 2021 05:2200000Error: expected "51152682755424 ", got "51152699608501 "
4Jun 27, 2021 05:2233,03592,015,48129,071,21602,191,360
5Jun 27, 2021 05:2233,04487,193,25729,079,03002,191,360
6Jun 27, 2021 05:2233,05987,473,22029,091,81002,191,360