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 listFeb 19, 2024 13:00Huy Duc LeHuy Duc LeScore: 32,933Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 19, 2024 13:0032,83456,267,05627,898,000996,0002,289,664
2Feb 19, 2024 13:0032,83554,660,48226,903,0001,992,0002,281,472
3Feb 19, 2024 13:0032,85055,650,73626,915,0001,993,0002,498,560
4Feb 19, 2024 13:0032,86051,305,77526,923,0001,994,0002,285,568
5Feb 19, 2024 13:0032,90055,609,19026,956,0001,996,0002,289,664
6Feb 19, 2024 13:0032,91855,318,97726,971,0001,997,0002,490,368
7Feb 19, 2024 13:0032,93357,054,67326,983,0001,998,0002,494,464
8Feb 19, 2024 13:0033,06756,262,23727,093,0002,006,0002,289,664
9Feb 19, 2024 13:0033,08960,326,11727,110,0002,008,0002,289,664
10Feb 19, 2024 13:0033,210101,396,35629,224,47502,207,744
11Feb 19, 2024 13:0033,38793,863,30829,380,12802,211,840
12Feb 19, 2024 13:0033,40183,900,57029,392,61902,203,648