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 listMay 18, 2024 20:15Ivan BessonovIvan BessonovScore: 18,069Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 18, 2024 20:1516,99941,350,77812,965,0001,994,0002,318,336
2May 18, 2024 20:1517,05134,824,73313,005,0002,000,0002,322,432
3May 18, 2024 20:1517,12031,037,38613,058,0002,008,0002,289,664
4May 18, 2024 20:1517,23033,839,95914,152,0001,010,0002,322,432
5May 18, 2024 20:1517,40161,723,02015,312,93502,306,048
6May 18, 2024 20:1518,06531,571,61015,897,00002,289,664
7May 18, 2024 20:1518,06944,331,31613,914,0001,987,0002,318,336
8May 18, 2024 20:1518,07433,049,58313,917,0001,988,0002,416,640
9May 18, 2024 20:1518,08044,001,15414,916,000994,0002,289,664
10May 18, 2024 20:1518,08442,949,57414,920,000994,0002,289,664
11May 18, 2024 20:1518,08994,574,82615,918,53702,183,168
12May 18, 2024 20:1518,28098,786,89316,086,81202,191,360