The answer is 13725.
We first claim that if n is odd, then ∏b=1n(1+e2πiab/n)=2gcd(a,n). To see this, write d=gcd(a,n) and a=da1, n=dn1 with gcd(a1,n1)=1. Then
a1,2a1,…,n1a1 modulo n1 is a permutation of 1,2,…,n1 modulo n1, and so ωa1,ω2a1,…,ωn1a1 is a permutation of ω,ω2,…,ωn1; it follows that for ω=e2πi/n1,
b=1∏n1(1+e2πiab/n)=b=1∏n1(1+e2πia1b/n1)=b=1∏n1(1+ωb).
Now since the roots of zn1−1 are ω,ω2,…,ωn1, it follows that
zn1−1=∏b=1n1(z−ωb). Setting z=−1 and using the fact that n1 is odd gives ∏b=1n1(1+ωb)=2.
Finally,
∏b=1n(1+e2πiab/n)=(∏b=1n1(1+e2πiab/n))d=2d, and we have proven the claim.
From the claim, we find that
log2(a=1∏2015b=1∏2015(1+e2πiab/2015))=a=1∑2015log2(b=1∏2015(1+e2πiab/2015))=a=1∑2015gcd(a,2015).
Now for each divisor d of 2015, there are ϕ(2015/d) integers between 1 and 2015 inclusive whose gcd with 2015 is d. Thus
a=1∑2015gcd(a,2015)=d∣2015∑d⋅ϕ(2015/d).
We factor 2015=pqr with p=5, q=13, and r=31, and calculate
d∣pqr∑d⋅ϕ(pqr/d)=1⋅(p−1)(q−1)(r−1)+p⋅(q−1)(r−1)+q⋅(p−1)(r−1)+r⋅(p−1)(q−1)+pq⋅(r−1)+pr⋅(q−1)+qr⋅(p−1)+pqr⋅1=(2p−1)(2q−1)(2r−1).
When (p,q,r)=(5,13,31), this is equal to 13725.