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 listNov 13, 2024 12:37Dan StolyarovDan StolyarovScore: 272,027Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 13, 2024 12:37271,985265,718,218236,343,0003,004,0002,469,888
2Nov 13, 2024 12:37272,027261,311,501237,381,0002,003,0002,281,472
3Nov 13, 2024 12:37273,345267,510,566238,540,0002,004,0002,465,792