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 1, 2025 14:32zielajzielajScore: 3,689Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 1, 2025 14:323,48921,410,2921,023,0002,047,0002,457,600
2Jan 1, 2025 14:323,49419,071,5642,050,0001,025,0002,457,600
3Jan 1, 2025 14:323,49525,830,8951,025,0002,051,0002,281,472
4Jan 1, 2025 14:323,57721,638,0321,049,0002,099,0002,465,792
5Jan 1, 2025 14:323,68921,126,4251,082,0002,164,0002,453,504
6Jan 1, 2025 14:323,70718,540,7622,175,0001,087,0002,461,696
7Jan 1, 2025 14:323,71318,632,6641,089,0002,178,0002,457,600
8Jan 1, 2025 14:323,72420,561,5601,092,0002,185,0002,461,696
9Jan 1, 2025 14:324,54820,084,6832,001,0002,001,0002,281,472