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 30, 2025 19:27andrei445andrei445Score: 1,978,303Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 30, 2025 19:271,978,1311,764,372,9491,740,755,00002,482,176
2Jan 30, 2025 19:271,978,3031,770,148,4431,739,908,000999,0002,486,272
3Jan 30, 2025 19:271,990,4891,774,319,9031,750,631,000999,0002,293,760