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:20Chiraag BaluChiraag BaluScore: 7,983,236Success
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:207,960,8067,065,950,5957,005,509,07002,260,992
2Apr 4, 2024 09:207,983,2367,097,861,2027,025,248,11902,260,992
3Apr 4, 2024 09:207,998,6817,108,578,5497,038,839,69602,256,896