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 listDec 28, 2022 03:36Yuriy LyfenkoYuriy LyfenkoScore: 38,827Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2022 03:3630,579102,893,10526,909,13702,211,840
2Dec 28, 2022 03:3630,63993,911,21126,962,41302,220,032
3Dec 28, 2022 03:3630,71087,993,34427,024,72502,215,936
4Dec 28, 2022 03:3638,63660,027,45532,000,0002,000,0002,273,280
5Dec 28, 2022 03:3638,64465,030,78032,007,0002,000,0002,371,584
6Dec 28, 2022 03:3638,78061,072,82932,119,0002,007,0002,269,184
7Dec 28, 2022 03:3638,82759,352,06633,164,0001,004,0002,273,280
8Dec 28, 2022 03:3638,87860,838,31232,201,0002,012,0002,371,584
9Dec 28, 2022 03:3638,91565,961,11233,238,0001,007,0002,269,184
10Dec 28, 2022 03:3638,91956,909,68833,242,0001,007,0002,269,184
11Dec 28, 2022 03:3638,98455,556,40433,297,0001,009,0002,269,184
12Dec 28, 2022 03:3639,03161,118,38332,327,0002,020,0002,269,184