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 7, 2024 10:32Ivan BessonovIvan BessonovScore: 48,551Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 7, 2024 10:3245,064110,209,73939,656,12002,260,992
2May 7, 2024 10:3245,064120,456,82139,656,68102,252,800
3May 7, 2024 10:3245,06597,551,31039,657,25702,256,896
4May 7, 2024 10:3248,35262,486,64441,537,0001,013,0002,265,088
5May 7, 2024 10:3248,39564,930,07242,588,00002,269,184
6May 7, 2024 10:3248,51471,593,56342,692,00002,289,664
7May 7, 2024 10:3248,55171,426,99941,708,0001,017,0002,269,184
8May 7, 2024 10:3248,70067,499,29141,860,000996,0002,379,776
9May 7, 2024 10:3248,72074,581,98242,874,00002,289,664
10May 7, 2024 10:3248,73373,231,12241,888,000997,0002,269,184
11May 7, 2024 10:3248,78968,467,87440,938,0001,996,0002,289,664
12May 7, 2024 10:3248,83970,842,49740,979,0001,999,0002,289,664