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 2, 2025 22:46zielajzielajScore: 3,864Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 2, 2025 22:463,71925,022,9572,182,0001,091,0002,408,448
2Jan 2, 2025 22:463,86419,500,3272,267,0001,133,0002,535,424
3Jan 2, 2025 22:463,96624,260,3143,490,00002,404,352