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 listMar 8, 2025 13:34wainCGPwainCGPScore: 18,441Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 8, 2025 13:3418,33235,351,92614,116,0002,016,0002,285,568
2Mar 8, 2025 13:3418,35142,668,79414,131,0002,018,0002,289,664
3Mar 8, 2025 13:3418,43639,716,11214,196,0002,028,0002,273,280
4Mar 8, 2025 13:3418,44039,457,26414,199,0002,028,0002,273,280
5Mar 8, 2025 13:3418,44143,020,37815,214,0001,014,0002,289,664
6Mar 8, 2025 13:3418,52433,724,16914,264,0002,037,0002,285,568
7Mar 8, 2025 13:3418,54535,649,73214,280,0002,040,0002,277,376
8Mar 8, 2025 13:3418,54731,909,28914,281,0002,040,0002,289,664
9Mar 8, 2025 13:3418,62536,731,79714,342,0002,048,0002,289,664