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 listDec 14, 2024 22:29Yuriy LyfenkoYuriy LyfenkoScore: 8,497,095Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 14, 2024 22:298,469,1247,483,172,6837,413,867,00038,962,0002,359,296
2Dec 14, 2024 22:298,497,0957,512,224,0877,433,495,00043,949,0002,502,656
3Dec 14, 2024 22:298,500,0747,511,244,4797,446,097,00033,968,0002,359,296