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 21, 2021 18:23Yuriy LyfenkoYuriy LyfenkoScore: 44,232Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2021 18:2339,017106,107,94234,335,22402,211,840
2Jun 21, 2021 18:2339,065101,447,10634,377,05202,215,936
3Jun 21, 2021 18:2339,14496,938,78934,446,38302,224,128
4Jun 21, 2021 18:2344,05271,103,21038,766,00002,269,184
5Jun 21, 2021 18:2344,18964,426,42936,892,0001,994,0002,375,680
6Jun 21, 2021 18:2344,19964,860,80936,901,0001,994,0002,379,776
7Jun 21, 2021 18:2344,23267,796,59336,928,0001,996,0002,269,184
8Jun 21, 2021 18:2344,25264,576,12836,945,0001,997,0002,269,184
9Jun 21, 2021 18:2344,26864,690,59136,959,0001,997,0002,269,184
10Jun 21, 2021 18:2344,31163,763,81536,995,0001,999,0002,269,184
11Jun 21, 2021 18:2344,34166,982,33537,019,0002,001,0002,269,184
12Jun 21, 2021 18:2344,39266,655,01837,062,0002,003,0002,375,680