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 20, 2024 20:10Ivan BessonovIvan BessonovScore: 15,355Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 20, 2024 20:1015,23434,729,86513,406,00002,285,568
2May 20, 2024 20:1015,29229,539,71412,422,0001,035,0002,285,568
3May 20, 2024 20:1015,31530,367,38512,441,0001,036,0002,289,664
4May 20, 2024 20:1015,32234,559,26512,446,0001,037,0002,289,664
5May 20, 2024 20:1015,33533,995,32112,457,0001,038,0002,289,664
6May 20, 2024 20:1015,34743,356,30112,467,0001,038,0002,289,664
7May 20, 2024 20:1015,35530,660,19612,473,0001,039,0002,289,664
8May 20, 2024 20:1015,50682,099,91813,645,03102,195,456
9May 20, 2024 20:1015,98929,767,06712,060,0002,010,0002,424,832
10May 20, 2024 20:1016,00830,894,44412,075,0002,012,0002,289,664
11May 20, 2024 20:1016,10275,343,92714,169,59402,322,432
12May 20, 2024 20:1016,18563,083,80014,242,46302,199,552