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 07:55Yuriy LyfenkoYuriy LyfenkoScore: 35,849Success
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 07:5530,847103,626,73327,145,13502,232,320
2Dec 28, 2022 07:5530,90268,577,39127,193,71702,220,032
3Dec 28, 2022 07:5530,90396,550,50527,194,77002,220,032
4Dec 28, 2022 07:5535,74862,439,89730,444,0001,014,0002,269,184
5Dec 28, 2022 07:5535,76457,003,07131,472,00002,379,776
6Dec 28, 2022 07:5535,79553,987,46631,500,00002,379,776
7Dec 28, 2022 07:5535,84952,613,35430,530,0001,017,0002,269,184
8Dec 28, 2022 07:5535,88851,453,58931,581,00002,379,776
9Dec 28, 2022 07:5535,92755,673,95631,616,00002,269,184
10Dec 28, 2022 07:5535,96358,369,53030,627,0001,020,0002,379,776
11Dec 28, 2022 07:5535,98655,033,17830,647,0001,021,0002,269,184
12Dec 28, 2022 07:5536,23958,091,49330,894,000996,0002,383,872