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 listJan 26, 2025 21:25Ian MckibbenIan MckibbenScore: 44,768Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 26, 2025 21:2544,53163,984,48038,183,0001,004,0002,433,024
2Jan 26, 2025 21:2544,56364,885,78539,215,00002,531,328
3Jan 26, 2025 21:2544,70763,582,79939,342,00002,437,120
4Jan 26, 2025 21:2544,72563,973,79939,358,00002,437,120
5Jan 26, 2025 21:2544,76870,868,38938,386,0001,010,0002,433,024
6Jan 26, 2025 21:2544,77259,447,63239,399,00002,433,024
7Jan 26, 2025 21:2544,82366,557,23739,444,00002,420,736
8Jan 26, 2025 21:2544,84962,216,79139,467,00002,437,120
9Jan 26, 2025 21:2544,91159,979,85038,509,0001,013,0002,531,328