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 13, 2024 11:29Yuriy LyfenkoYuriy LyfenkoScore: 27,473Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 31, 2024 21:5427,33849,784,07322,053,0002,004,0002,392,064
2Dec 13, 2024 11:2927,35151,067,95523,067,0001,002,0002,387,968
3Aug 31, 2024 21:5427,40754,299,97923,114,0001,004,0002,387,968
4Aug 31, 2024 21:5427,42250,629,50023,126,0001,005,0002,383,872
5Aug 31, 2024 21:5427,42550,074,67722,123,0002,011,0002,260,992
6Aug 31, 2024 21:5427,45556,702,60223,154,0001,006,0002,387,968
7Aug 31, 2024 21:5427,47054,672,06922,160,0002,014,0002,260,992
8Aug 31, 2024 21:5427,47349,564,96722,162,0002,014,0002,392,064
9Aug 31, 2024 21:5427,49953,375,56422,183,0002,016,0002,387,968
10Aug 31, 2024 21:5427,53559,945,22122,212,0002,019,0002,392,064
11Dec 13, 2024 11:2927,56648,648,50023,248,0001,010,0002,396,160
12Dec 13, 2024 11:2927,58546,949,14324,275,00002,510,848
13Aug 31, 2024 21:5427,59350,742,86423,271,0001,011,0002,379,776
14Aug 31, 2024 21:5427,68946,365,85424,366,00002,527,232
15Aug 31, 2024 21:5427,71045,779,61324,385,00002,387,968