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:22zielajzielajScore: 3,440Success
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:223,38522,306,0721,986,000993,0002,277,376
2Jan 10, 2025 14:223,42722,676,8642,011,0001,005,0002,519,040
3Jan 10, 2025 14:223,43324,437,0892,014,0001,007,0002,523,136
4Jan 10, 2025 14:223,44022,575,7882,018,0001,009,0002,523,136
5Jan 10, 2025 14:223,44020,284,8932,018,0001,009,0002,510,848
6Jan 10, 2025 14:223,44420,147,1452,021,0001,010,0002,539,520
7Jan 10, 2025 14:223,57719,054,0971,049,0002,099,0002,510,848
8Jan 10, 2025 14:224,14023,386,2113,643,00002,519,040
9Jan 10, 2025 14:224,52522,139,7932,987,000995,0002,535,424