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 5, 2024 09:13Ivan BessonovIvan BessonovScore: 46,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 5, 2024 09:1345,69366,860,53938,200,0002,010,0002,289,664
2May 5, 2024 09:1345,86762,922,28939,354,0001,009,0002,273,280
3May 5, 2024 09:1345,88062,960,62939,365,0001,009,0002,269,184
4May 5, 2024 09:1345,97461,634,49040,457,00002,289,664
5May 5, 2024 09:1345,98561,869,84939,456,0001,011,0002,289,664
6May 5, 2024 09:1345,99770,681,10839,466,0001,011,0002,527,232
7May 5, 2024 09:1346,06963,518,82340,541,00002,289,664
8May 5, 2024 09:1346,14261,372,33539,590,0001,015,0002,289,664
9May 5, 2024 09:1346,17662,844,44039,620,0001,015,0002,265,088
10May 5, 2024 09:1346,320107,222,85340,761,30202,265,088
11May 5, 2024 09:1346,37799,652,17440,812,00602,256,896
12May 5, 2024 09:1346,461105,519,07040,885,43902,256,896