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 16, 2025 22:53Ian MckibbenIan MckibbenScore: 1,280,689Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 16, 2025 22:531,269,4951,141,273,2071,087,179,00029,977,0002,310,144
2Jan 16, 2025 22:531,280,6891,151,830,5071,097,033,00029,973,0002,494,464
3Jan 16, 2025 22:531,286,2601,159,329,5881,104,935,00026,974,0002,265,088