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 listApr 16, 2026 20:50olliecrowolliecrowScore: 37,105Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 16, 2026 20:5037,09257,946,02330,601,0002,040,0002,473,984
2Apr 16, 2026 20:5037,10561,595,76030,612,0002,040,0002,416,640
3Apr 16, 2026 20:5037,42661,309,55529,941,0002,994,0002,412,544