Why I chose D over Ada and Eiffel

Timon Gehr timon.gehr at gmx.ch
Fri Aug 30 01:10:24 PDT 2013


On 08/30/2013 01:35 AM, Timon Gehr wrote:
>
> bool isPrime(int x){ return iota(3,x).all!(a=>!!(x%a)); }

bool isPrime(int x){ return 1<x && iota(3,x).all!(a=>!!(x%a)); }


More information about the Digitalmars-d mailing list