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 13, 2024 01:12zielajzielajScore: 9,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 13, 2024 01:129,01321,092,0546,940,000991,0002,363,392
2Dec 13, 2024 01:129,09523,518,1436,003,0002,001,0002,277,376
3Dec 13, 2024 01:129,13621,104,1587,035,0001,005,0002,461,696