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:18Chiraag BaluChiraag BaluScore: 7,364,346Success
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:187,359,7846,541,084,0566,476,610,33602,252,800
2Apr 4, 2024 09:187,364,3466,559,070,2226,480,624,23402,265,088
3Apr 4, 2024 09:187,381,6566,567,071,7316,495,857,47902,256,896