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 20, 2021 22:25Yuriy 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 20, 2021 22:2400000Error: expected "51568885577496 ", got "51569718234197 "
2Jun 20, 2021 22:2400000Error: expected "51658955960688 ", got "51658969966129 "
3Jun 20, 2021 22:2400000Error: expected "51212895350608 ", got "51212895478305 "
4Jun 20, 2021 22:2300000Error: expected "51503811094065 ", got "51504872088988 "
5Jun 20, 2021 22:2300000Error: expected "51138069473288 ", got "51138179660510 "
6Jun 20, 2021 22:2550,227116,546,87844,199,57702,301,952
7Jun 20, 2021 22:2550,268111,308,53444,235,54502,310,144
8Jun 20, 2021 22:2550,310110,328,99244,273,13102,297,856
9Jun 20, 2021 22:2556,69379,697,37943,904,0005,986,0002,510,848
10Jun 20, 2021 22:2556,73379,837,84441,937,0007,988,0002,322,432
11Jun 20, 2021 22:2556,80577,615,09939,991,0009,997,0002,326,528
12Jun 20, 2021 22:2556,86580,872,25441,034,0009,007,0002,330,624
13Jun 20, 2021 22:2557,04275,120,01842,166,0008,031,0002,269,184
14Jun 20, 2021 22:2557,05577,686,33542,175,0008,033,0002,519,040
15Jun 20, 2021 22:2557,06977,277,90341,182,0009,039,0002,478,080
16Jun 20, 2021 22:2557,07079,353,61742,187,0008,035,0002,326,528
17Jun 20, 2021 22:2557,19378,232,83742,278,0008,052,0002,347,008