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 11, 2025 22:18Aniruddha DebAniruddha DebScore: 117,075Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 11, 2025 22:18116,880128,659,063101,856,000998,0002,269,184
2Apr 11, 2025 22:18117,075123,910,536102,026,0001,000,0002,531,328
3Apr 11, 2025 22:18117,093125,712,844101,042,0002,000,0002,428,928