We define a map F with domain a certain subset of the set of light leaves (certain morphisms between Soergel bimodules introduced by the author in an earlier paper) and range the set of prime numbers. Using results of Soergel we prove the following property of F: if the image p = F(l) of some light leaf l under F is bigger than the Coxeter number of the corresponding Weyl group, then there is a counterexample to Lusztig's conjecture in characteristic p. We also introduce the "double leaves basis" which is an improvement of the light leaves basis that has already found interesting applications. In particular it forms a cellular basis of Soergel bimodules that allows us to produce an algorithm to find "the bad primes" for Lusztig's conjecture.