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 4, 2024 09:47Chiraag BaluChiraag BaluScore: 5,731,999Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 4, 2024 09:475,727,4055,092,394,5885,040,116,42602,252,800
2Apr 4, 2024 09:475,731,9995,117,438,4395,044,158,79002,256,896
3Apr 4, 2024 09:475,734,9205,105,281,7075,046,729,77702,260,992