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:40Yuriy LyfenkoYuriy LyfenkoScore: 38,726Success
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:4030,629100,731,84926,953,67502,207,744
2Dec 28, 2022 03:4030,633100,904,06426,957,45702,236,416
3Dec 28, 2022 03:4030,70699,307,09727,020,91902,211,840
4Dec 28, 2022 03:4038,52659,918,85232,906,000997,0002,379,776
5Dec 28, 2022 03:4038,66964,216,22532,028,0002,001,0002,387,968
6Dec 28, 2022 03:4038,72564,265,72133,076,0001,002,0002,269,184
7Dec 28, 2022 03:4038,72666,129,11632,075,0002,004,0002,371,584
8Dec 28, 2022 03:4038,74358,505,42533,092,0001,002,0002,375,680
9Dec 28, 2022 03:4038,78261,463,32033,125,0001,003,0002,527,232
10Dec 28, 2022 03:4038,88660,887,97433,214,0001,006,0002,375,680
11Dec 28, 2022 03:4038,91067,323,61033,234,0001,007,0002,269,184
12Dec 28, 2022 03:4038,96558,592,11532,272,0002,017,0002,379,776