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 listDec 30, 2024 21:22zielajzielajScore: 3,614Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 30, 2024 21:223,59119,407,1291,053,0002,107,0002,465,792
2Dec 30, 2024 21:223,61420,706,9191,060,0002,120,0002,457,600
3Dec 30, 2024 21:223,81515,297,6282,238,0001,119,0002,535,424