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 20:01zielajzielajScore: 3,583Success
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 19:433,49119,974,5951,024,0002,048,0002,461,696
2Jan 1, 2025 20:013,49823,495,3741,026,0002,052,0002,281,472
3Jan 1, 2025 20:013,50219,987,2621,027,0002,055,0002,461,696
4Jan 1, 2025 20:013,50518,467,3922,056,0001,028,0002,457,600
5Jan 1, 2025 20:013,50623,807,7571,028,0002,057,0002,457,600
6Jan 1, 2025 19:433,56022,479,6841,044,0002,089,0002,457,600
7Jan 1, 2025 19:433,58319,299,5641,051,0002,102,0002,461,696
8Jan 1, 2025 20:013,58818,976,2491,052,0002,105,0002,457,600
9Jan 1, 2025 20:013,59420,237,9811,054,0002,109,0002,457,600
10Jan 1, 2025 20:013,61817,286,9721,061,0002,123,0002,461,696
11Jan 1, 2025 20:013,68918,138,6151,082,0002,164,0002,465,792
12Jan 1, 2025 20:013,71417,616,8891,089,0002,179,0002,465,792