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 01:19Yuriy 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 01:1800000Error: expected "51095342698868 ", got "51095342698845 "
2Jun 27, 2021 01:1939,904103,970,84235,115,79102,220,032
3Jun 27, 2021 01:1939,955100,360,34535,160,38802,224,128
4Jun 27, 2021 01:1939,98792,257,20935,188,28702,232,320
5Jun 27, 2021 01:1944,88466,065,72139,498,00002,375,680
6Jun 27, 2021 01:1944,90661,417,35039,517,00002,375,680
7Jun 27, 2021 01:1944,90661,727,72938,504,0001,013,0002,375,680
8Jun 27, 2021 01:1944,91161,117,50739,522,00002,269,184
9Jun 27, 2021 01:1944,94562,056,79538,538,0001,014,0002,371,584
10Jun 27, 2021 01:1944,96660,959,61239,570,00002,269,184
11Jun 27, 2021 01:1944,97461,245,90038,563,0001,014,0002,269,184
12Jun 27, 2021 01:1945,04865,509,93239,642,00002,265,088
13Jun 27, 2021 01:1945,17767,370,69438,737,0001,019,0002,269,184