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 29, 2024 21:59zielajzielajScore: 3,676Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 30, 2024 18:063,47520,597,4561,019,0002,039,0002,281,472
2Dec 30, 2024 18:063,48918,641,3161,023,0002,047,0002,465,792
3Dec 30, 2024 18:063,56017,603,7641,044,0002,089,0002,297,856
4Dec 30, 2024 16:493,56620,734,0161,046,0002,092,0002,465,792
5Dec 30, 2024 18:063,58416,123,3151,051,0002,103,0002,297,856
6Dec 29, 2024 18:223,58621,252,6011,052,0002,104,0002,461,696
7Dec 29, 2024 18:223,58821,204,0122,105,0001,052,0002,469,888
8Dec 29, 2024 18:223,59820,593,6061,055,0002,111,0002,461,696
9Dec 30, 2024 18:063,59820,592,4591,055,0002,111,0002,469,888
10Dec 30, 2024 18:063,67619,536,5311,078,0002,157,0002,465,792
11Dec 30, 2024 16:493,69920,914,6491,085,0002,170,0002,469,888
12Dec 30, 2024 18:063,71016,345,0041,088,0002,177,0002,469,888
13Dec 30, 2024 16:493,72520,096,1123,278,00002,535,424
14Dec 29, 2024 21:593,75821,145,0251,102,0002,205,0002,453,504
15Dec 29, 2024 21:593,77217,576,4522,213,0001,106,0002,535,424
16Dec 30, 2024 18:064,45023,377,7301,958,0001,958,0002,535,424
17Dec 30, 2024 18:064,53617,796,2871,996,0001,996,0002,301,952
18Dec 29, 2024 21:594,63919,272,2312,041,0002,041,0002,297,856