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 10, 2025 14:38zielajzielajScore: 3,482Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 10, 2025 14:393,39520,790,1871,992,000996,0002,539,520
2Jan 10, 2025 14:393,39718,744,4141,993,000996,0002,523,136
3Jan 10, 2025 14:393,42316,840,3782,008,0001,004,0002,535,424
4Jan 10, 2025 14:393,43021,877,2861,006,0002,012,0002,523,136
5Jan 10, 2025 14:393,43621,144,4782,016,0001,008,0002,523,136
6Jan 10, 2025 14:393,48116,013,0162,042,0001,021,0002,519,040
7Jan 10, 2025 14:393,48220,691,2452,043,0001,021,0002,510,848
8Jan 10, 2025 14:393,48518,264,5022,045,0001,022,0002,510,848
9Jan 10, 2025 14:383,52316,551,2312,067,0001,033,0002,527,232
10Jan 10, 2025 14:383,57719,333,2072,099,0001,049,0002,519,040
11Jan 10, 2025 14:393,59424,926,7582,109,0001,054,0002,519,040
12Jan 10, 2025 14:384,56018,502,1033,010,0001,003,0002,277,376