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 24, 2024 18:30AnSaAnSaScore: 7,327,448Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 24, 2024 18:307,313,7166,500,826,4986,436,070,29002,224,128
2Jan 24, 2024 18:307,327,4486,510,990,3356,448,154,38702,215,936
3Jan 24, 2024 18:307,360,2706,541,073,9256,477,037,61002,240,512