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 18, 2025 07:13Ian MckibbenIan MckibbenScore: 10,650,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 18, 2025 07:1310,627,64711,516,798,4934,887,559,0004,464,770,000233,472
2Jan 18, 2025 07:1310,650,48211,480,570,8014,849,284,0004,523,140,000233,472
3Jan 18, 2025 07:1311,380,64311,365,034,1264,904,169,0005,110,797,000290,816