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 21:44Aniruddha DebAniruddha DebScore: 109,115Success
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 21:44108,699121,787,20695,655,00002,269,184
2Apr 11, 2025 21:44109,033120,687,48694,950,000999,0002,424,832
3Apr 11, 2025 21:44109,047123,518,76194,962,000999,0002,269,184
4Apr 11, 2025 21:44109,111120,805,99295,018,0001,000,0002,433,024
5Apr 11, 2025 21:44109,115116,702,60194,021,0002,000,0002,531,328
6Apr 11, 2025 21:44109,133114,443,92794,037,0002,000,0002,433,024
7Apr 11, 2025 21:44109,135121,344,31795,039,0001,000,0002,428,928
8Apr 11, 2025 21:44109,339119,872,47195,216,0001,002,0002,531,328
9Apr 11, 2025 21:44109,580118,599,65396,430,00002,269,184