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 9, 2025 02:35zielajzielajScore: 3,523Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 9, 2025 02:353,49924,925,2901,026,0002,053,0002,535,424
2Jan 9, 2025 02:353,50123,363,8491,027,0002,054,0002,457,600
3Jan 9, 2025 02:353,50522,755,6761,028,0002,056,0002,461,696
4Jan 9, 2025 02:353,50819,789,1922,058,0001,029,0002,461,696
5Jan 9, 2025 02:353,52322,102,7031,033,0002,067,0002,457,600
6Jan 9, 2025 02:353,58315,692,9731,051,0002,102,0002,453,504
7Jan 9, 2025 02:353,60716,290,0171,058,0002,116,0002,461,696
8Jan 9, 2025 02:354,48821,505,6702,633,0001,316,0002,457,600
9Jan 9, 2025 02:354,51126,505,2841,985,0001,985,0002,277,376