You have to watch for Hot Battery
I have been running Boinc on my Note 4 since last November and it works perfect-running only when the screen is off.
However 2 things to be aware of :-
1. Battery usage rockets.
2. Battery gets hot and can reduce its life
Understandable when the phone is working at 1005 (ish) nearly all the time.