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 listNov 15, 2024 12:24NoSIMD_C#NoSIMD_C#Score: 17,596,440Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 15, 2024 12:2417,444,73615,389,130,06615,350,369,000999,0002,433,024
2Nov 15, 2024 12:2417,496,39315,429,572,55715,393,828,0002,998,0002,420,736
3Nov 15, 2024 12:2417,538,03915,463,452,13015,429,476,0003,998,0002,408,448
4Nov 15, 2024 12:2417,547,67515,473,867,49215,437,956,0003,998,0002,543,616
5Nov 15, 2024 12:2417,596,44015,521,196,19115,481,869,0002,998,0002,404,352
6Nov 15, 2024 12:2417,604,39815,525,099,46115,486,873,0004,997,0002,404,352
7Nov 15, 2024 12:2417,621,51415,543,019,47515,503,934,0002,998,0002,400,256
8Nov 15, 2024 12:2417,639,22615,558,255,56615,518,521,0003,998,0002,494,464
9Nov 15, 2024 12:2417,672,86015,581,629,49315,549,119,0002,998,0002,551,808